This module contains functions that are useful in the administration of client endpoints.
This function accepts a hash and will convert it into a plist. This requires the CFPropertyList gem to be installed on your Puppet Server (sudo puppetserver gem install cfpropertylist
).
$plist = {
'SomeKey' => 'Some Value',
'Another Key' => 'Another Value'
}
file {'/tmp/a.plist':
content => plist($plist, binary),
}
Returns true if the version specified, or a higher version is installed of the specified package ID.
macos_package_installed('com.googlecode.munki.core', '1.0.0')
The Ruby is formatted with rufo. The Puppet should pass puppet-lint
.