Skip to main content

MacosUserdefaultsGlobalProperty

All Cookstyle Cops


The department is: Chef/Deprecations

The full name of the cop is: Chef/Deprecations/MacosUserdefaultsGlobalProperty


Enabled by default Supports autocorrection Target Chef Version
Enabled Yes 16.3+

The global property in the macos_userdefaults resource was deprecated in Chef Infra Client 16.3. This property was never properly implemented and caused failures under many conditions. Omitting the domain property will now set global defaults.

Examples

incorrect

macos_userdefaults 'set a value' do
  global true
  key 'key'
  value 'value'
end

correct

macos_userdefaults 'set a value' do
  key 'key'
  value 'value'
end

Configurable attributes

Name Default value Configurable values
Version Added 6.14.0 String
Exclude
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?

×









Search Results