module-icingaweb2/manifests/install.pp
2015-03-16 17:04:32 +01:00

38 lines
906 B
Puppet

# == Class icingaweb2::install
#
class icingaweb2::install {
assert_private()
if $::icingaweb2::install_method == 'package' {
if $::icingaweb2::pkg_list {
package { $::icingaweb2::pkg_list:
ensure => $::icingaweb2::pkg_ensure,
}
}
if $::icingaweb2::pkg_deps {
package { $::icingaweb2::pkg_deps:
ensure => $::icingaweb2::pkg_ensure,
before => Package[$::icingaweb2::pkg_list],
}
}
}
if $::icingaweb2::install_method == 'git' {
if $::icingaweb2::pkg_deps {
package { $::icingaweb2::pkg_deps:
ensure => $::icingaweb2::pkg_ensure,
before => Vcsrepo['icingaweb2'],
}
}
vcsrepo { 'icingaweb2':
ensure => present,
path => $::icingaweb2::web_root,
provider => 'git',
revision => $::icingaweb2::git_revision,
source => $::icingaweb2::git_repo,
}
}
}