]> granicus.if.org Git - icinga2/commitdiff
Vagrant: Restart Apache after installing icinga-web.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 14 Oct 2013 12:30:01 +0000 (14:30 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 14 Oct 2013 12:30:23 +0000 (14:30 +0200)
.vagrant-puppet/manifests/default.pp
.vagrant-puppet/modules/apache/manifests/init.pp

index 8391be71cdf9fb23c9b2d32320e43d5d1eaebde7..2b64d104aefed890c30ae260051031863018f266 100644 (file)
@@ -86,7 +86,8 @@ package { $icinga2_main_packages:
 
 package { 'icinga-web':
   ensure => installed,
-  require => Class['icinga-rpm-snapshot']
+  require => Class['icinga-rpm-snapshot'],
+  notify => Exec['reload-apache']
 }
 
 # enable http 80
index e328ff95ff350af5d7c3b69c27d24f2d25dbc6ff..da1aeee0cfdd958e15888c6e1994421abf9d2793 100644 (file)
@@ -29,4 +29,9 @@ class apache {
     alias   => 'apache',
     require => Package['apache']
   }
+
+  exec { 'reload-apache':
+    command => '/etc/init.d/httpd force-reload',
+    refreshonly => true,
+  }
 }