Puppet Class: cobbler::install
- Defined in:
- manifests/install.pp
Overview
Class cobbler::install
Installs packages required to deploy cobbler
Parameters
- package
-
The package name or array of packages that provides cobbler.
Type: String or Array Default: check cobbler::params::package
- package_ensure
-
The state of the package.
Type: String Values: present, installed, absent, purged, held, latest Default: installed
Authors
Anton Baranov <abaranov@linuxfoundation.org>
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'manifests/install.pp', line 23
class cobbler::install (
$package,
$package_ensure,
){
# Validation
validate_re($package_ensure,[
'^present$',
'^installed$',
'^absent$',
'^purged$',
'^held$',
'^latest$',
])
if is_array($package) {
validate_array($package)
} else {
validate_string($package)
}
package { $package:
ensure => $package_ensure,
}
}
|