Puppet Class: icinga::repos
- Defined in:
- manifests/repos.pp
Summary
Overview
This class manages the stages stable, testing and snapshot of packages.icinga.com repository and depending on the operating system platform some other repositories.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'manifests/repos.pp', line 33
class icinga::repos(
Boolean $manage_stable,
Boolean $manage_testing,
Boolean $manage_nightly,
Boolean $configure_backports,
Boolean $manage_epel,
Boolean $manage_plugins,
Boolean $manage_extras,
) {
$list = lookup('icinga::repos', Hash, 'deep', {})
$managed = {
icinga-stable-release => $manage_stable,
icinga-testing-builds => $manage_testing,
icinga-snapshot-builds => $manage_nightly,
epel => $manage_epel,
netways-plugins-release => $manage_plugins,
netways-extras-release => $manage_extras,
}
case $::facts['os']['family'] {
'redhat': {
contain ::icinga::repos::yum
}
'debian': {
contain ::icinga::repos::apt
}
'suse': {
contain ::icinga::repos::zypper
}
default: {
fail('Your plattform is not supported to manage repositories.')
}
} # osfamily
}
|