Believe it or not, infrastructure configuration solutions like Chef have been around for more than 10 years now. Over those 10 years, Chef has continued to improve the functionality of Chef Infra, requiring clients to not only upgrade to a new version, but also update some of the associated automation they have built. Depending on the current version being run, and the amount of automation built, upgrading Chef could have ended up being a major project itself.
To minimize the amount of time and effort needed to upgrade to the current version of Chef Infra, we built Chef Cookstyle. And to help users learn more about how Cookstyle helps simplify the upgrade process (and other recently released Chef Infra Client features) we have launched the “Shape-Up Your Infrastructure Automation” quickfire webinar series.
In the first installment, Chef Infra Product Manager Tim Smith (@tas50), provided an overview of Chef Cookstyle.
Chef Cookstyle – Fix, Upgrade and Modernize
Cookstyle is a code analysis tool built upon RuboCop that replaced Foodcritic in September 2019 and is shipped as part of Chef Workstation. Cookstyle helps users fix deprecations, upgrade Chef client, and modernize their codebase.
Upgrade Process with Cookstyle
Today there are over 100 Chef Infra specific rules (called cops) shipped with Cookstyle that catch common cookbook coding mistakes, cleanup portions of code that are no longer necessary, and detect deprecations that prevent cookbooks from running on the latest releases of Chef Infra Client.
Running Cookstyle on your infrastructure code not only ensures that everyone on your team is following a common coding style and avoid potential bugs, it also ensures that you’re utilizing the latest functionality the Chef Infra Client offers.
To learn more about Cookstyle, watch the webinar with its creator, Tim Smith!
The “Shape-up Your Infrastructure Automation” webinar series will continuous through 2021. Below are the next two schedule event that are now open for registration:
- February 25th, 11:30 AM PT – Part 2: Configure Chef Infra & Compliance Using Built-In Functionality
- March 18th, 11:30 AM PST – Part 3: Testing Chef Infra Cookbooks Fast with Docker
The post Chef Infra Best Practices: #1 Using Cookstyle for Infra Client Upgrades appeared first on Chef Blog.