Chef Automate versions 1.0.0-1.8.96 reached end-of-life on December 31, 2019 and are no longer supported. For more information and for help upgrading your system, please contact your Chef account representative. The current Chef Automate versions includes significant architectural and technical improvements to the core product platform. This guide shows you how to migrate your existing Chef Automate installation to the current Chef Automate.
In this guide, we call Chef Automate versions 1.0.0-1.8.96 “Chef Automate 1” and the current version “Chef Automate 2”.
The Chef Automate migration process performs the following steps, in order:
Warning
Before you start the migration process, fulfill the requirements detailed in this section.
You will need the chef-automate command line tool to initiate your upgrade.
Download the latest version of the Chef Automate CLI:
wget https://packages.chef.io/files/current/automate/latest/chef-automate_linux_amd64.zip
Unzip the package:
unzip chef-automate_linux_amd64.zip
Move the unzipped chef-automate binary to /usr/local/bin:
mv chef-automate /usr/local/bin
The Chef Automate upgrade process requires connectivity to the internet to install the Chef Automate 2 binaries. The standard Chef Automate installation requires current versions for Chrome, Edge, or Firefox browsers. If you filter internet access via proxy or by other means, you must ensure the following domains are accessible:
packages.chef.iolicensing.chef.ioraw.githubusercontent.comapi.bintray.combldr.habitat.shakamai.bintray.comdl.bintray.combintray.comThe Chef Automate 2 installer respects the following environment variables:
HTTPS_PROXY/https_proxy
HTTP_PROXY/http_proxy
NO_PROXY/no_proxy
If you use a proxy to manage outbound HTTP(S) connections, ensure these variables are set when running the migration.
Recent versions of Chef Automate 1 contain enhancements that the migration process relies upon to ensure your data is safely migrated. Chef Automate 1.8.38 or greater is required.
Chef Automate 2 requires the systemd init system. If you’re using Chef Automate 1 on an operating system that makes use of a different init system, we recommend consulting Customer Support for the appropriate migration strategy.
While we’ve taken care to make the migration process as smooth as possible, this section outlines some caveats to consider before you proceed.
The Chef Automate 2 migration process puts your Chef Automate 1 installation into maintenance mode, shuts it down, and starts Chef Automate 2. During the downtime, the migration process takes a backup of your Chef Automate 1 data and exports some of its data to a local snapshot, which is imported into Chef Automate 2.
To minimize this downtime, we recommended that you create an online backup of Chef Automate 1 just prior to the upgrade. Historical information such as Chef Infra Client run data and compliance scan data is backed up incrementally, which means that the upgrade only needs to transfer data that has been added since the last backup.
By default, the Chef Automate 2 upgrade process will not proceed if your Chef Automate 1 installation does not have backups configured. Invoke the migration using the --skip-backup-check flag to avoid this check.
Chef Automate 2 includes significant architectural and technical improvements to the core product platform. If you rely on any of the capabilities listed below, we recommend you continue to using your existing Chef Automate installation.
To migrate to Chef Automate 2 without these features, invoke the migration with the appropriate flags:
--skip-fips-check--skip-disaster-recovery-check--skip-saml-checkThese flags enable you to migrate by skipping preflight checks for unsupported features.
The Chef Automate 2 migration process requires manual intervention to migrate a Chef Automate 1 installation that uses external Elasticsearch.
To migrate an external Elasticsearch cluster, please reach out to a Customer Success or Customer Support representative for assistance.
Chef Automate 2 stores its data in directories named /hab/svc/$service-name/data. In particular:
/hab/svc/automate-elasticsearch/data/
/hab/svc/automate-postgresql/data/
If you use dedicated disks or partitions for either of these applications in Chef Automate 1, you must modify your disk mount configuration to make these disks/partitions available to Chef Automate 2.
Login to Chef Automate to start a trial. The trial provides you with a 60-day license. Requesting a trial license requires internet connectivity in your Chef Automate 2 instance (only at the time of the license request).
If you are migrating an airgapped Chef Automate installation, contact your Chef account representative for a Chef Automate 2 license.
Create a backup your Chef Automate 1 installation:
automate-ctl create-backup
Once the backup has completed, initiate the migration process. If your host is internet-connected, run the command:
./chef-automate migrate-from-v1 --channel current
If your host is airgapped, run the command:
./chef-automate migrate-from-v1 --airgap-bundle </path/to/bundle>
After the migration runs the preflight checks and analyzes your Chef Automate 1 configuration, it asks for confirmation to continue. Review the generated configuration file and if it is correct, type yes to continue.
The migration process backs up your Chef Automate 1 data, shuts down Chef Automate 1, imports your data to Chef Automate 2, then starts Chef Automate 2. At this point, you can use your existing Chef Automate 1 user credentials to login to Chef Automate 2. If you’ve been using LDAP for authenticating users, that configuration will have been migrated as well, and you can use your LDAP credentials to login. Historical data will be migrated in the background.
Chef Automate 2 handles upgrades differently than Chef Automate 1 did. The Installation documentation and Airgapped Installation documentation provide further detail.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/automate/migrate/