Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (41 sloc) 945 Bytes
# == Class: boilerplate::package
#
# This class exists to coordinate all software package management related
# actions, functionality and logical units in a central place.
#
#
# === Parameters
#
# This class does not provide any parameters.
#
#
# === Examples
#
# This class may be imported by other classes to use its functionality:
# class { 'boilerplate::package': }
#
# It is not intended to be used directly by external resources like node
# definitions or other modules.
#
#
# === Authors
#
# * John Doe <mailto:john.doe@example.com>
#
class boilerplate::package {
#### Package management
# set params: in operation
if $boilerplate::ensure == 'present' {
$package_ensure = $boilerplate::autoupgrade ? {
true => 'latest',
false => 'present',
}
# set params: removal
} else {
$package_ensure = 'purged'
}
# action
package { $boilerplate::params::package:
ensure => $package_ensure,
}
}