Chef Automate on AWS
Chef Automate Quick Start

Setting up the Workstation and chef-repo

  1. On the desktop, open the context (right-click) menu for Chef Development Kit, and choose Run as administrator.

                        Launching the Chef Development Kit (ChefDK) from the desktop

    Figure 11: Launching the Chef Development Kit (ChefDK) from the desktop

    This will bring up the ChefDK console, which runs via Windows PowerShell.

                        The ChefDK console

    Figure 12: The ChefDK console

  2. At the prompt, change to the root of drive C:

    CD c:\
  3. Run the following command to generate the chef-repo. This will be the Git repository used to store and version-control your cookbooks.

    chef generate repo chef-repo
  4. Run the following PowerShell commands to unzip the Chef Starter Kit. If you downloaded the archive to another location, update the source path as needed.

    $source = 'C:\users\chefadmin\downloads\' $dest = 'c:\chef-starter' Expand-Archive -Path $source -DestinationPath $dest
  5. Copy the .chef folder from the extracted Chef Starter Kit to the root of your chef-repo folder:

    $source = 'c:\chef-starter\chef-repo\.chef' Copy-Item -Path $source -Destination .\chef-repo -Recurse
  6. Set the location of ChefDK console to the chef-repo folder:

    CD .\chef-repo

    After this point, you must run all knife commands from this directory location. Do not switch (CD) to another location, or the knife commands will fail.

  7. Run the knife ssl fetch command to add the self-signed certificate on Chef Automate to the trusted certs folder in your chef-repo. Replace the DNS name with the public DNS name of Chef Automate.

    knife ssl fetch

    For production environments, you can replace the self-signed certificate with one that is issued from a trusted certification authority (CA).