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