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.