Reload vhost changes, not restart
We can 'apache2 reload' vhost changes, which avoids apache stop / start and downtime for jobs. Change-Id: Idf44ec7cea09538687ddfccaeb3bea2fe6b7cf10 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
efd4267ef4
commit
b87ed6eb93
|
@ -21,10 +21,18 @@ class httpd {
|
|||
}
|
||||
|
||||
service { 'httpd':
|
||||
ensure => running,
|
||||
name => $httpd::params::apache_name,
|
||||
enable => true,
|
||||
subscribe => Package['httpd'],
|
||||
ensure => running,
|
||||
name => $httpd::params::apache_name,
|
||||
enable => true,
|
||||
subscribe => Package['httpd'],
|
||||
hasrestart => true,
|
||||
}
|
||||
|
||||
exec { 'httpd-reload':
|
||||
command => "service ${httpd::params::apache_name} reload",
|
||||
path => ['/usr/bin', '/usr/sbin'],
|
||||
refreshonly => true,
|
||||
require => Service['httpd'],
|
||||
}
|
||||
|
||||
file { 'httpd_vdir':
|
||||
|
|
|
@ -94,7 +94,7 @@ define httpd::vhost(
|
|||
group => 'root',
|
||||
mode => '0755',
|
||||
require => Package['httpd'],
|
||||
notify => Service['httpd'],
|
||||
notify => Exec['httpd-reload'],
|
||||
}
|
||||
|
||||
if $configure_firewall {
|
||||
|
|
Loading…
Reference in New Issue