Note that I included the Berksfile after submitting everything Thursday
- Deploy Chef_Challenge
These steps are to be executed on the Chef Workstation running ChefDK- Change directory to the root of /<chef repo>/cookbooks/
- Clone Chef_Challenge Repository to the root of the cookbooks directory
Executegit clone https://github.com/ipryseski/Chef_Challenge.git
- Install Docker cookbook
Executeknife supermarket install docker 4.9.3
- Deploy or Test
- Deploy
- Upload Chef_Challenge and docker to Chef Server
Executeknife cookbook upload Chef_Challenge --include-dependencies
- Find your node. Take note of the name.
Executeknife node list
- Assign run list to the node you picked out. Replace with the name reference above.
Executeknife node run_list add <nodename> "recipe[Chef_Challenge::default]"
- Run remote cmd for Chef-client to update.
Executeknife ssh 'name:<nodename>' 'sudo chef-client' -x root
- Upload Chef_Challenge and docker to Chef Server
- Test
Requires Test-kitchen to be setup- Change directory to the root of the Chef_Challenge within cookbooks
Executekitchen test
- Change directory to the root of the Chef_Challenge within cookbooks
- Deploy