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.
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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'manifests/repos.pp', line 46
class icinga::repos (
Boolean $manage_stable,
Boolean $manage_testing,
Boolean $manage_nightly,
Boolean $configure_backports,
Boolean $manage_epel,
Boolean $manage_powertools,
Boolean $manage_crb,
Boolean $manage_server_monitoring,
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,
powertools => $manage_powertools,
crb => $manage_crb,
server_monitoring => $manage_server_monitoring,
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.')
}
}
}
|