preinstall.pp 463 B

123456789101112131415161718
  1. # == Class icingaweb2::preinstall
  2. #
  3. class icingaweb2::preinstall {
  4. if $::icingaweb2::manage_repo and $::icingaweb2::install_method == 'package' {
  5. case $::operatingsystem {
  6. 'RedHat', 'CentOS': {
  7. ::icingaweb2::preinstall::redhat { 'icingaweb2':
  8. pkg_repo_version => $::icingaweb2::pkg_repo_version,
  9. }
  10. }
  11. default: {
  12. fail "Managing repositories for ${::operatingsystem} is not supported."
  13. }
  14. }
  15. }
  16. }