Skip to main content

MacosUserdefaultsGlobalProperty

The department is: MacosUserdefaultsGlobalProperty

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes16.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

NameDefault valueConfigurable values
Version Added6.14.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results