Databags not been used on node

Hello I am trying to create users with databags with the users cookbook but creates the groups and not the users, is like ignores the databags all together.. :frowning:
for more info and way more details please check this:

this is driving me insane.. I have made new databags with diff names.. uppercare/lowercase with action: create with out it.. readed 10 times the documentation of encrypted databags and the the users cookbook and i can't see what is wrong... like in that post I mention I output the debug log and edited on vim and cant see any ERROR and worse no mention that is reading the databags is like ghost/ignoring them all together....

I will apreciate any help
thanks.

You have to write your own wrapper recipe to specify the relevant group, and run that recipe on that server, to activate all the users for that group as published in the specified databagā€¦ Have you done so?

Personally, Iā€™ve given up on the ā€œusersā€ cookbook until it can more gracefully handle private SSH keys. Since Iā€™ve had to write wrapper cookbooks anyway, Iā€™ve found it more effective to use the ā€œuserā€ resource more directly in my own recipes, and tune things like shared groups as needed by ordering the operation of the chef ā€œgroupā€ resource as well as the ā€œuserā€ resource.

1 Like

Hello yes I create my own cookbook wrapper and included the users cookbook on the metadata fileā€¦ do you have some examples on using the user resource with ssh keys I can look at? I just did a search now after I read your msg and saw only examples with creating user but not the .ssh/authorized_keys etcā€¦

Still very puzzle that the users cookbook is not workingā€¦ :frowning: