Hi, I'm using test-kitchen with vagrant, and having trouble with the usersyou can 'detect' running on vagrant by looking for the presence of the vagrant user:
cookbook from opscode.
Suppose we have a bunch of 'users' data bag items and some of them have 'sudo'
in the array of groups. If we have a recipe that has users_manage "sudo",
kitchen converge removes the vagrant user from sudo group because we don't
have
the vagrant user in our data_bags.
I could come up with a few work arounds:
A. Add vagrant user in our data_bags
B. Modify our cookbook so that users_manage "sudo" runs if it's not in Vagrant
Archive powered by MHonArc 2.6.16.