Procházet zdrojové kódy

fix for broken dependency when installing via git

Benjamin Krein před 9 roky
rodič
revize
4332ff8eaa
1 změnil soubory, kde provedl 12 přidání a 5 odebrání
  1. 12 5
      manifests/install.pp

+ 12 - 5
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,