Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

troubles with data bag #51

Closed
TheFatal opened this issue Nov 18, 2013 · 4 comments
Closed

troubles with data bag #51

TheFatal opened this issue Nov 18, 2013 · 4 comments

Comments

@TheFatal
Copy link

hello, as it is written in USAGE section i added recipe[user::data_bag] into run list:

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]
Roles:
Recipes: user::data_bag
Platform: debian 7.1

here is my data bag:
and my data bag:

knife data bag show users user
groups: sudo
home: /home/user
id: user
password: >$6$wkWXnXUk$xjaISNyG3cDGU2X
shell: /bin/bash
uid: 1002

and after executing chef-client on client node, nothing happens, user is not created; what am i doing wrong ?, guys please help me to deal with it

@twmbx
Copy link

twmbx commented Jan 13, 2014

did you ever resolve? having the same problem.

@chrisanderton
Copy link

try using my fork (https://github.com/thewebfellas/chef-user/) - i made a change in this area when i was using it, and i think it was for the same reason - i.e. that it wasn't doing anything - give it a try, see if it helps

@allnightlong
Copy link

@chris-at-thewebfellas Thanks a lot, you saved my day

@theckman
Copy link
Collaborator

theckman commented Nov 5, 2016

I believe the reason this isn't working is because the users attribute on the node is empty. When using the user::data_bag recipe, you need to set the equivalent on your node:

default['users'] = ['user', 'admin', 'person']

However, this ticket was opened so long ago it may be hard to know. With how long this issue has been opened without an update I'm going to close it. You you are still having problems, please don't hesitate to open a new issue.

@theckman theckman closed this as completed Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants