Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 902 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 902 Bytes

puppet-client_stdlib

This module contains functions that are useful in the administration of client endpoints.

Functions

plist

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).

Example

$plist = {
    'SomeKey' => 'Some Value',
    'Another Key' => 'Another Value'
}

file {'/tmp/a.plist':
    content => plist($plist, binary),
}

macos_package_installed

Returns true if the version specified, or a higher version is installed of the specified package ID.

Example

macos_package_installed('com.googlecode.munki.core', '1.0.0')

Development

The Ruby is formatted with rufo. The Puppet should pass puppet-lint.