fix for broken dependency when installing via git

This commit is contained in:
Benjamin Krein 2015-03-04 23:00:07 -05:00 committed by Tom De Vylder
parent 0d54db18cc
commit 4332ff8eaa

View file

@ -9,16 +9,23 @@ class icingaweb2::install {
ensure => $::icingaweb2::pkg_ensure,
}
}
}
if $::icingaweb2::pkg_deps {
package { $::icingaweb2::pkg_deps:
ensure => $::icingaweb2::pkg_ensure,
before => Package[$::icingaweb2::pkg_list],
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,