Skip to content

macadmins/puppet-client_stdlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.