Puppet Class: conntrackd::package
- Defined in:
- manifests/package.pp
Summary
This class exists to coordinate all software package management relatedOverview
# conntrackd::package
actions, functionality and logical units in a central place.
This class may be imported by other classes to use its functionality:
class { 'conntrackd::package': }
It is not intended to be used directly by external resources like node definitions or other modules.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/package.pp', line 16
class conntrackd::package {
assert_private()
#### Package management
if $conntrackd::ensure == 'present' {
# set params: in operation
$package_ensure = $conntrackd::autoupgrade ? {
true => 'latest',
false => 'present',
}
} else {
# set params: removal
$package_ensure = 'purged'
}
# action
package { $conntrackd::package:
ensure => $package_ensure,
}
}
|