Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
This post will walk you through upgrading Chef Automate to various versions in various ways. You can choose to upgrade any version according to your need. It is essential to upgrade from time to time to utilize the smooth functionality of the chef automates without any problem.
Upgrade in Chef
Suppose there is a patch update or minor upgrade available in chef automate. In that case, it will automatically be upgraded without any issues. Still, for a major upgrade like the chef has added some new features, you need to manually upgrade your Chef Automate, which is not a hard task.
You just need to add --major flag in CLI for a major upgrade.
chef-automate upgrade run --major
Disable Automatic Upgrade
If you don't want to upgrade, automatically change the upgarde_strategy setting to none in config.toml file.
upgrade_stratergy = “ none “
To manually upgrade to a minor version, run the command:
chef-automate upgrade run
Upgrade to 3.X in Chef Automate
As we have mentioned, chef automate will automatically upgrade to a minor version, but you need to do it yourself to upgrade to a major version. To upgrade to 3.0.X, you need to first upgrade to version 20220329091442; follow the instructions below:
First, check the current version of your chef automates by:
sudo chef-automate version
If the current version is less than 20220329091442, then you can proceed to upgrade.
Yes, the version before 20220329091442 is a lower version of chef automates than 3.0.X.
Can we disable the automatic upgrade in chef automate?
Just make upgrade_stratergy = "none "in confid,toml file in chef automate.
What precautions should we take before upgrading?
Just back up your data before upgrading to a higher version.
How to handle downtime?
Just enter sudo chef-automate maintenance to turn on maintenance, and the environment will handle the downtime.
How do you verify whether the service is working or not?
sudo chef-automate status
Conclusion
We learned how we could upgrade to different versions of chef automate in various possible ways. And we have also known other useful commands that we can use in chef automate CLI, like how to check the current version and how we can disable automatic upgrades.
To learn more about the chef, you can check out the following articles: