- From: "Julian C. Dunn" <
>
- To:
- Subject: [chef] Re: Re: Re: troubles with data bags in chef/knife
- Date: Mon, 18 Nov 2013 10:15:54 -0500
The readme for that cookbook also states:
---
The data bag recipe will iterate through a list of usernames defined in
`node['users']` (by default) and attempt to pull in the user's information
from the data bag item. In other words, having:
node['users'] = ['hsolo']
---
So you need to set an attribute for the users you actually want created :-)
- Julian
On Mon, Nov 18, 2013 at 9:36 AM, TheFatal
<
>
wrote:
>
tnx for your answer
>
>
in "user cookbook" documentation in USAGE section on
>
http://fnichol.github.io/chef-user/
>
>
To use recipe[user::data_bag], include it in your run_list and have a
>
data
>
bag called >"users"
>
>
so i changed my Run List settings to:
>
>
knife node show chef-test-client
>
Node Name: chef-test-client
>
Environment: _default
>
FQDN: chef-test-client
>
IP: 192.168.16.777
>
Run List: recipe[user::data_bag], recipe[group::data_bag]
>
Roles:
>
Recipes: user::data_bag, group::data_bag
>
Platform: debian 7.1
>
>
and my data bag:
>
>
knife data bag show users fatal
>
groups: sudo
>
home: /home/fatal
>
id: fatal
>
password: >$6$wkWXnXUk$xjaISNyG3cDGU2X
>
shell: /bin/bash
>
uid: 1002
>
>
and nothing happens again :(
--
[ Julian C. Dunn
<
>
* Sorry, I'm ]
[ WWW:
http://www.aquezada.com/staff/julian * only Web 1.0 ]
[
gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]
Archive powered by MHonArc 2.6.16.