install.pp 882 B

123456789101112131415161718192021222324252627282930313233343536
  1. # == Class icingaweb2::install
  2. #
  3. class icingaweb2::install {
  4. if $::icingaweb2::install_method == 'package' {
  5. if $::icingaweb2::pkg_list {
  6. package { $::icingaweb2::pkg_list:
  7. ensure => $::icingaweb2::pkg_ensure,
  8. }
  9. }
  10. if $::icingaweb2::pkg_deps {
  11. package { $::icingaweb2::pkg_deps:
  12. ensure => $::icingaweb2::pkg_ensure,
  13. before => Package[$::icingaweb2::pkg_list],
  14. }
  15. }
  16. }
  17. if $::icingaweb2::install_method == 'git' {
  18. if $::icingaweb2::pkg_deps {
  19. package { $::icingaweb2::pkg_deps:
  20. ensure => $::icingaweb2::pkg_ensure,
  21. before => Vcsrepo['icingaweb2'],
  22. }
  23. }
  24. vcsrepo { 'icingaweb2':
  25. ensure => present,
  26. path => $::icingaweb2::web_root,
  27. provider => 'git',
  28. revision => $::icingaweb2::git_revision,
  29. source => $::icingaweb2::git_repo,
  30. }
  31. }
  32. }