module-icingaweb2/manifests/preinstall.pp

24 lines
561 B
Puppet

# == Class icingaweb2::preinstall
#
class icingaweb2::preinstall {
if is_function_available('assert_private') {
assert_private()
} else {
private()
}
if $::icingaweb2::manage_repo and $::icingaweb2::install_method == 'package' {
case $::operatingsystem {
'RedHat', 'CentOS': {
::icingaweb2::preinstall::redhat { 'icingaweb2':
pkg_repo_version => $::icingaweb2::pkg_repo_version,
}
}
default: {
fail "Managing repositories for ${::operatingsystem} is not supported."
}
}
}
}