[chef] Re: Add recipe users, and users cookbook is enough for user's auto creation ?


Chronological Thread 
  • From: Mike < >
  • To: " " < >
  • Subject: [chef] Re: Add recipe users, and users cookbook is enough for user's auto creation ?
  • Date: Mon, 9 Dec 2013 09:10:31 -0500

Vladimir,

Is the data bag item valid json? From what you've pasted, it doesn't look like it has a final closing }.

And has the data bag been uploaded to Chef Server?

-M


On Mon, Dec 9, 2013 at 7:53 AM, Vladimir Skubriev < " target="_blank"> > wrote:
I use users cookbook.

I declare a role with appropriate run_list

  "run_list": [
      "recipe[users]",
      "recipe[users::sysadmins]",

Add this role to node, prior to run chef-client of course.

Creating data bag users/sysadmin:

{
  "id": "sysadmin",
  "groups": [ "root", "sysadmin" ],
  "action": "create",
  "password": "",
  "shell": "\/bin\/bash",
  "comment": "Server Admin",
  "nagios": {
    "email": " " target="_blank"> "
  }


Run chef-client on node, and user "sysadmin" & group "sysadmin" doesn't created.

Why ?

Add recipe users, and users cookbook is enough for user's auto creation, when using opscode/users cookbook ?


--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev





Archive powered by MHonArc 2.6.16.

§