From 4332ff8eaa85ce25c5646c350584378413abc662 Mon Sep 17 00:00:00 2001 From: Benjamin Krein Date: Wed, 4 Mar 2015 23:00:07 -0500 Subject: [PATCH] fix for broken dependency when installing via git --- manifests/install.pp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index 278e987..898b950 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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,