Vagrant: Restart Apache after installing icinga-web.

This commit is contained in:
Gunnar Beutner 2013-10-14 14:30:01 +02:00
parent e2bd2bcbb7
commit 7965713617
2 changed files with 7 additions and 1 deletions

View 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

View File

@ -29,4 +29,9 @@ class apache {
alias => 'apache',
require => Package['apache']
}
exec { 'reload-apache':
command => '/etc/init.d/httpd force-reload',
refreshonly => true,
}
}