UseChefLanguageCloudHelpers
The department is: UseChefLanguageCloudHelpers
The full name of the cop is: Chef/Modernize/UseChefLanguageCloudHelpers
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 15.5+ |
Chef Infra Client 15.5 and later include cloud helpers to make detecting instances that run on public and private clouds easier.
Examples
incorrect
node['cloud']['provider'] == 'alibaba'
node['cloud']['provider'] == 'ec2'
node['cloud']['provider'] == 'gce'
node['cloud']['provider'] == 'rackspace'
node['cloud']['provider'] == 'eucalyptus'
node['cloud']['provider'] == 'linode'
node['cloud']['provider'] == 'openstack'
node['cloud']['provider'] == 'azure'
node['cloud']['provider'] == 'digital_ocean'
node['cloud']['provider'] == 'softlayer'
correct
alibaba?
ec2?
gce?
rackspace?
eucalyptus?
linode?
openstack?
azure?
digital_ocean?
softlayer?
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 7.22.0 | String |
Include |
| Array |
Was this page helpful?