Skip to content

Latest commit

 

History

History
82 lines (53 loc) · 2.33 KB

resource_automatic_software_updates.md

File metadata and controls

82 lines (53 loc) · 2.33 KB

automatic_software_updates

Use the automatic_software_updates resource to manage the Automatic Software Update preferences.

The automatic_software_updates resource manages the state of the desired software update preference using the plist resource to set the values for each individual property.

Automatic Software Updates

Syntax

The simplest use of the automatic_software_updates resource is:

automatic_software_updates "enables automatic check, download, and install of software updates" do
  check true
  download true
  install_os true
  install_app_store true
  install_critical true
end

Actions

The automatic_software_updates resource has the following actions:

:set

      Default. Set plist attribute to true.

Properties

check

      Ruby type: TrueClass, FalseClass

      Enable or disable automatic checking of software updates.

download

      Ruby type: TrueClass, FalseClass

      Enable or disable automatic download of software updates. Only applicable if the check property is true.

install_os

      Ruby type: TrueClass, FalseClass

      Enable or disable automatic install of OS updates. Only applicable if the download property is true.

install_critical

      Ruby type: TrueClass, FalseClass

      Enable or disable automatic install of critical updates. Only applicable if the check property is enabled

install_app_store

      Ruby type: TrueClass, FalseClass

      Enable or disable automatic install of application updates from the app store. Only applicable if the download property is true.

Examples

Enable automatic checking of software updates

automatic_software_updates "enable automatic checking of software updates" do
  check true
  download false
  install_os false
  install_app_store false
  install_critical false
end