Upgrade Chef Compliance¶
The following sections describe the upgrade process for Chef Compliance.
This section describes the prereqs for the upgrade
- Previously installed Chef Compliance software.
- sudo or root access to the machine.
To upgrade to the latest version of Chef Compliance, do the following:
Stop the services:
Run dpkg or RPM Package Manager. For dpkg:
dpkg -i /path/to/chef-compliance-<version>.deb
For RPM Package Manager:
rpm -Uvh /path/to/chef-compliance-<version>.rpm
Start the database to allow connections during the reconfigure step:
chef-compliance-ctl start postgresql
Reconfigure the services:
Starting with Chef Compliance 1.1.9, the Chef MLSA must be accepted when reconfiguring the product. If the Chef MLSA has not already been accepted, the reconfigure process will prompt for a yes to accept it. Or run chef-compliance-ctl reconfigure --accept-license to automatically accept the license.
Start the services:
Check the status of the services:
The default directory where Chef Compliance is saving logs is: /var/log/chef-compliance/. It contains a directory for each service, but you can follow all the logs with this command:
sudo chef-compliance-ctl tail
This command can also be run for an individual service by specifying the name of the service in the command. For example:
sudo chef-compliance-ctl tail core