sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 218 forks source link

is not creating the users only the groups #420

Closed r3k2 closed 3 years ago

r3k2 commented 6 years ago

Cookbook version

latest 5.3.1

Chef-client version

chef-client -v Chef: 13.8.5

Platform Details

server is latest with ubuntu and node im testing with is centos

Scenario:

I bootstraped and adding current users to be manage under chef. I did not expect any changes with current users.. but it did not modify the comment information after this Im trying to create with chef a total new user called testuser with no success it just creates the groups

Steps to Reproduce:

always

Expected Result:

add new users, modify current users

Actual Result:

nothing happens, runs and says nothing to change after the first time that added the groups.

Extra more details.

I follow the instructions on here, on the front page. I include the users cookbook into my made from scrach cookbook where I include in the metadata file the users cook book

example default.rb

include_recipe "users"

users_manage 'mygroup' do
  group_id 2000
  search_group "mygroup"
  action [:create]
  data_bag 'MYUSERSDATABAG'
end

the other 2-3 groups are setup the same way with diff databags with users for that group like I say, I am fine with the current users not been modified but new users are not getting even created..

r3k2 commented 6 years ago

I'm still dealing with this, added action create inside the item in the databags, no luck I created t he default databag users and put the people in there, no luck I enabled :debug searched results looking for errors... nothing. I am starting to think is just plain ignoring the databags, like not even trying to read them. Also I made sure the key is on /etc/chef/encrypted_data_bag_secret I read the documentation over and over, here and on chef site... cant see what is wrong.. @ivey @martinisoft @seth @stem @btm

jkovarick commented 5 years ago

I'm also encountering this issue.

mateuszkwiatkowski commented 4 years ago

I had similar problem and resolved it by reindexing data on chef-server:

chef-server-ctl reindex --all-orgs
github-actions[bot] commented 3 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 3 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

the6thBook commented 2 years ago

Still an issue.