Test chef app
This project is a test for creating new Chef app. I use this as a template to understand how to use it and how to integrate it on hosted chef http://manage.chef.io
- chef generate app chef_test_repo
- mkdir local-vms
- cd local-vms
- vagrant init
- copy knife.rb in .chef subfolder
- copy / reference *.pem downloaded for the client from https://manage.chef.io
- knife ssl fetch
- knife ssl check
- vagrant up
- vagrant ssh-config vm1
- knife bootstrap localhost --ssh-port 2222 --ssh-user vagrant --sudo --identity-file ~/git/tests/chef_test_repo/local-vms/.vagrant/machines/vm1/virtualbox/private_key --node-name vm1-centos --run-list 'recipe[chef_test_repo]'
- knife ssh localhost --ssh-port 2222 'sudo chef-client' --manual-list --ssh-user vagrant --identity-file ~/git/tests/chef_test_repo/local-vms/.vagrant/machines/vm1/virtualbox/private_key