module-icingaweb2/manifests/install.pp

30 lines
695 B
ObjectPascal
Raw Normal View History

2015-02-20 10:40:45 +01:00
# == Class icingaweb2::install
#
class icingaweb2::install {
if $::icingaweb2::install_method == 'package' {
if $::icingaweb2::pkg_list {
package { $::icingaweb2::pkg_list:
ensure => $::icingaweb2::pkg_ensure,
}
}
}
2015-02-20 10:40:45 +01:00
if $::icingaweb2::pkg_deps {
package { $::icingaweb2::pkg_deps:
ensure => $::icingaweb2::pkg_ensure,
before => Package[$::icingaweb2::pkg_list],
2015-02-20 10:40:45 +01:00
}
}
if $::icingaweb2::install_method == 'git' {
vcsrepo { 'icingaweb2':
ensure => present,
path => $::icingaweb2::web_root,
provider => 'git',
revision => $::icingaweb2::git_revision,
source => $::icingaweb2::git_repo,
}
}
}