preinstall.pp 561 B

123456789101112131415161718192021222324
  1. # == Class icingaweb2::preinstall
  2. #
  3. class icingaweb2::preinstall {
  4. if is_function_available('assert_private') {
  5. assert_private()
  6. } else {
  7. private()
  8. }
  9. if $::icingaweb2::manage_repo and $::icingaweb2::install_method == 'package' {
  10. case $::operatingsystem {
  11. 'RedHat', 'CentOS': {
  12. ::icingaweb2::preinstall::redhat { 'icingaweb2':
  13. pkg_repo_version => $::icingaweb2::pkg_repo_version,
  14. }
  15. }
  16. default: {
  17. fail "Managing repositories for ${::operatingsystem} is not supported."
  18. }
  19. }
  20. }
  21. }