For a PoC we can install Chef Automate and Chef Server using an all in one
deployment pattern.
For further details please refer to the Chef Docs page - https://docs.chef.io/automate/system_requirements/
Chef Automate requires a minimum of:
- 16 GB of RAM
- 80 GB of disk space (available to /hab)
- 4 vCPUs
Chef Automate requires:
- a Linux kernel of version 3.2 or greater
- systemd as the init system
- useradd
- curl or wget
- The shell that starts Automate should have a max open files setting of at least 65535
- Commercial support for Chef Automate is available for platforms that satisfy these criteria.
Chef Automate supports the current browser versions for Chrome, Edge, and Firefox. Chef Automate does not support other browsers and may not be compatible with older browser versions.
For further details please refer to the Chef Docs page - https://docs.chef.io/automate/install/
Download and unzip the Chef Automate command-line tool:
curl https://packages.chef.io/files/current/latest/chef-automate-cli/chef-automate_linux_amd64.zip | gunzip - > chef-automate && chmod +x chef-automate
Create a config.toml
file with default values for your Chef Automate installation:
sudo ./chef-automate init-config
You can customize your FQDN, login name, and other values, by changing the values in the config.toml in your editor.
The following command will deploy Chef Automate and Chef Server
sudo ./chef-automate deploy config.toml --product automate --product chef-server --accept-terms-and-mlsa
if you require Habitat On Premise Builder, then use this command
sudo ./chef-automate deploy config.toml --product automate --product chef-server --product builder --accept-terms-and-mlsa
Deployment takes a few minutes. The first step is accepting the terms of service in the command line, after which the installer performs a series of pre-flight checks; any unsuccessful checks have information for resolving issues or skipping the check. Run the deploy command again, after resolving any pre-flight issues.
At the end of the deployment process you will see:
Deploy complete
The deployment process writes login credentials to the automate-credentials.toml
in your current working directory.
First create a user
on the Chef Server. The .pem
file will be used on your developer Chef Workstation machine.
sudo chef-server-ctl user-create Your_User_Name chef user [email protected] 'Your_Password' --filename $HOME/Your_User_Name.pem
Next, create an organisation for the Chef Infra Server. The .pem
file will be used as the 1 time validation key to bootstrap your Windows and Linux nodes.
sudo chef-server-ctl org-create Your_Org_Name 'automate' --association_user Your_User_Name --filename $HOME/Your_Org_Name-validator.pem
You will need to copy both .pem
files from the Chef Automate server as they will be needed on the developer Chef Workstation.