Skip to main content

Chef/Modernize/IncludingAptDefaultRecipe

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNo12.7+

For many users the apt::default cookbook is used only to update apt’s package cache. Chef Infra Client 12.7 and later include an apt_update resource which should be used to perform this instead. Keep in mind that some users will want to stick with the apt::default recipe as it also installs packages necessary for using https repositories on Debian systems and manages some configuration files.

Examples

incorrect

include_recipe 'apt::default'
include_recipe 'apt'

correct

apt_update

Configurable attributes

NameDefault valueConfigurable values
Version Added5.3.0String
Include
    Array

    Thank you for your feedback!

    ×











    Search Results