diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-01-16 15:15:41 -0200 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-01-17 14:23:19 -0200 |
commit | cfd1f9ee35f7b80b17c460b77709d3d5dc880638 (patch) | |
tree | b0aeb4387bdf4f7f3e6865f72294c47c0210b588 /puppet/modules/site_apache/manifests | |
parent | e9a3d71fd1c9fbdb1b468c633a6cbe310e3d6880 (diff) |
Add apache auto-restart extension file
Diffstat (limited to 'puppet/modules/site_apache/manifests')
-rw-r--r-- | puppet/modules/site_apache/manifests/common.pp | 1 | ||||
-rw-r--r-- | puppet/modules/site_apache/manifests/common/extensions.pp | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/puppet/modules/site_apache/manifests/common.pp b/puppet/modules/site_apache/manifests/common.pp index 208c15d5..c96932dd 100644 --- a/puppet/modules/site_apache/manifests/common.pp +++ b/puppet/modules/site_apache/manifests/common.pp @@ -28,5 +28,6 @@ class site_apache::common { include site_apache::common::tls include site_apache::common::acme + include site_apache::common::extensions } diff --git a/puppet/modules/site_apache/manifests/common/extensions.pp b/puppet/modules/site_apache/manifests/common/extensions.pp new file mode 100644 index 00000000..ddeafae0 --- /dev/null +++ b/puppet/modules/site_apache/manifests/common/extensions.pp @@ -0,0 +1,14 @@ +class site_apache::common::extensions { + + include ::systemd + file { '/etc/systemd/system/apache2.service.d/auto_restart.conf': + source => 'puppet:///modules/site_apache/auto_restart.conf', + owner => 'root', + group => 'root', + mode => '0644', + require => [ + Service['apache'] + ] + }~> + Exec['systemctl-daemon-reload'] +} |