Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.19 KB

Chef_Challenge_Deploy.md

File metadata and controls

24 lines (22 loc) · 1.19 KB

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
      Execute git clone https://github.com/ipryseski/Chef_Challenge.git
    • Install Docker cookbook
      Execute knife supermarket install docker 4.9.3
    • Deploy or Test
      • Deploy
        • Upload Chef_Challenge and docker to Chef Server
          Execute knife cookbook upload Chef_Challenge --include-dependencies
        • Find your node. Take note of the name.
          Execute knife node list
        • Assign run list to the node you picked out. Replace with the name reference above.
          Execute knife node run_list add <nodename> "recipe[Chef_Challenge::default]"
        • Run remote cmd for Chef-client to update.
          Execute knife ssh 'name:<nodename>' 'sudo chef-client' -x root
      • Test
        Requires Test-kitchen to be setup
        • Change directory to the root of the Chef_Challenge within cookbooks
          Execute kitchen test