- Clone the Automate source with git
git clone https://github.com/chef/automate.git
cd automate
- Checkout the branch that updates InSpec to a version that uses Ruby 2.6
git checkout ssd/upgrade-inspec
- Remove these rows from
products.meta
:
- chef/automate-cs-bookshelf
- chef/automate-cs-oc-bifrost
- chef/automate-cs-oc-erchef
- chef/automate-cs-nginx
- chef/automate-workflow-server
- chef/automate-workflow-nginx
- Download the chef-automate installer:
curl https://packages.chef.io/files/current/latest/chef-automate-cli/chef-automate_linux_amd64.zip | gunzip - > chef-automate && chmod +x chef-automate
- Locally build a chef/compliance-service package
Create a temporary 'chef' origin key for building a local chef/compliance-service package
hab origin key generate chef
Enter the habitat studio, build the compliance-service package, and install it locally
HAB_ORIGIN=chef hab studio enter
build components/compliance-service # in the studio
exit # leave the studio
sudo hab pkg install results/chef-compliance-service-1.11.1-20201105010614-x86_64-linux.hart # the filename will be slightly different
Copy the fully qualified package name for the chef/compliance-service package that was just built from the output, e.g. chef/compliance-service/1.11.1/20201105010614
- Create a reduced manifest.json by running the
create-manifest.rb
script, using the package that was build locally:
EXPEDITOR_NAME can be anything here, no need to change it
You must replace chef/compliance-service/1.11.1/20201105010614
with the fully qualified package from the last step
EXPEDITOR_NAME=foo EXPEDITOR_PKG_IDENTS_COMPLIANCESERVICEX86_64LINUX="chef/compliance-service/1.11.1/20201105010614" .expeditor/create-manifest.rb
- Create an Airgap Installation Bundle (AIB) based on the new manifest.json:
This runs as root to avoid potential issues accessing /hab/cache/keys
sudo ./chef-automate airgap bundle create -m manifest.json --hartifacts results/ --override-origin chef
- Copy the resulting
automate-*.aib
file to the server
- Download the chef-automate installer:
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 default Automate configuration, which by default does not include the Infra Server or Workflow
sudo ./chef-automate init-config
-
Modify
config.toml
as needed, e.g. settings the fqdn -
Install Automate using the AIB:
sudo ./chef-automate deploy config.toml --airgap-bundle automate-*.aib