Restart apache when config files are updated
This will allow the updates to httpd.conf to be applied without needing to restart each git server manually. Change-Id: I2d4d049c651642c41039d2f56bc8bb4aba12dd59
This commit is contained in:
@@ -152,6 +152,7 @@ class cgit(
|
|||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cgit/httpd.conf.erb'),
|
content => template('cgit/httpd.conf.erb'),
|
||||||
require => Package['httpd'],
|
require => Package['httpd'],
|
||||||
|
notify => Service['httpd'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/httpd/conf.d/ssl.conf':
|
file { '/etc/httpd/conf.d/ssl.conf':
|
||||||
@@ -161,6 +162,7 @@ class cgit(
|
|||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cgit/ssl.conf.erb'),
|
content => template('cgit/ssl.conf.erb'),
|
||||||
require => Package[$::apache::params::ssl_package],
|
require => Package[$::apache::params::ssl_package],
|
||||||
|
notify => Service['httpd'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { $cgitdir:
|
file { $cgitdir:
|
||||||
|
|||||||
Reference in New Issue
Block a user