Chef Compliance for Microsoft Azure

[edit on GitHub]

Microsoft Azure is a cloud hosting platform from Microsoft that provides virtual machines and integrated services for you to use with your cloud and hybrid applications. Through the Azure Marketplace and the Azure portal, virtual machines can be bootstrapped and ready to run Chef Automate, Chef Compliance and Chef client.

Chef Compliance

Chef provides a fully functional Chef Compliance VM image that can be launched from the Azure Marketplace.

  1. Sign in to the Azure portal and authenticate using your Microsoft Azure account credentials.

  2. Click the New icon in the upper-left corner of the portal.

  3. In the search box enter Chef Compliance.

  4. Select the Chef Compliance offering that is appropriate for your size.

    Note

    Chef Compliance is available on the Azure Marketplace in 5, 25, 50, 100, 150, 200, and 250 licensed images.

  5. Click Create and follow the steps to launch the Chef Compliance image, providing credentials, VM size, and any additional information required.

  6. Once your VM has been created, create a DNS name label for the instance by following these instructions: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-create-fqdn-on-portal/

  7. Once the virtual machine is launched you will need to create an account. To do this, open an SSH connection to the host using the user name and password (or SSH key) provided when you launch the virtual machine.

    Note

    In the following steps substitute <fqdn> for the fully qualified domain DNS NAME that you created.

  8. Update the /etc/chef-marketplace/marketplace.rb file to include the api_fqdn of the machine.

    $ echo 'api_fqdn "<fqdn>"' | sudo tee -a /etc/chef-marketplace/marketplace.rb
    
  9. Update the /etc/chef-compliance/chef-compliance.rb file to include the fqdn of the machine.

    $ echo 'fqdn "<fqdn>"' | sudo tee -a /etc/chef-compliance/chef-compliance.rb
    
  10. Run the following command to update the hostname and reconfigure the software:

    $ sudo chef-marketplace-ctl hostname <fqdn>
    $ sudo chef-compliance-ctl reconfigure
    
  11. Now proceed to the web based setup wizard https://<fqdn>/#/setup.

    Note

    Before you can run through the wizard you must provide the VM Name of the instance in order to ensure that only you are configuring the Chef Compliance instance.

  12. Follow the prompts to sign up for a new account.