[chef] Adding user via 'users' removed vagrant from sudo list


Chronological Thread 
  • From: Anthony Kong < >
  • To:
  • Subject: [chef] Adding user via 'users' removed vagrant from sudo list
  • Date: Wed, 25 Feb 2015 11:56:46 +1100

I wonder what is the best way to add an additional user to a VM box.

I have added a dependency on 'users' to my cookbook and thisĀ 

include_recipe "users"


to my default.rb in my cookbook.

I have also created a data bag to hold the user details.



When I run kitcken converge, it stuck atĀ 


-----> Chef Omnibus installation detected (install only if missing)


for a long time.


When I do 'kitichen login' to check, I find that user vagrant can no longer do sudo without prompting for password.


How can i add a user without destroying existing configuration?


Cheers, Tony





Archive powered by MHonArc 2.6.16.

§