Skip to content

Instantly share code, notes, and snippets.

@FUT
Last active December 19, 2015 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FUT/5950108 to your computer and use it in GitHub Desktop.
Save FUT/5950108 to your computer and use it in GitHub Desktop.
Chef cheatsheet

Bootstrap new instance:

knife bootstrap my.instance.compute.amazonaws.com -i my_key.pem -x ubuntu --sudo

Change password for root and ubuntu users (you will be unable to change password and run sudo under any user after 'sudo chef-client` command):

sudo su
passwd ubuntu
passwd

Add appropriate attributes, data buckets, cookbooks and roles to the node via web interface (hosted chef).

Run chef scripts on the client:

sudo chef-client 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment