ard
Use the ard resource to manage Remote Desktop settings and preferences. Under the hood, an ard resource executes the kickstart
command, located in ARDAgent.app (one of the CoreServices of macOS). It has some basic actions, which pertain to the simple kickstart
subcommands. It also has the more complicated :configure
action, which requires some familiarity with kickstart
. You can learn more about the kickstart
command here.
Syntax
A ard resource block declares a basic description of the command configuration and a set of properties depending on the actions executed. For example:
ard 'activate and configure ard' do
action [:activate, :configure]
end
where
:activate
activates the ARD agent
:configure
uses the default arguments to configure the agent
The full syntax for all of the properties that are available to the ard resource is:
ard 'description' do
install_package String
uninstall_options Array, default: ['-files', '-settings', '-prefs']
restart_options Array, default: ['-agent', '-console', '-menu']
users Array
privs Array, default: ['-all']
access String, default: '-on'
allow_access_for String, default: '-allUsers'
computerinfo Array
clientopts Array
action Symbol
end
Note: Not all properties are compatible with each action.
Actions
:activate
:deactivate
:uninstall
:stop
:restart
:configure
Properties
This resource has the following properties:
TODO