diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-01-17 11:03:14 -0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2017-01-18 18:44:21 +0100 |
commit | 740734a79b143b572da440e203dbadcb471f2e4e (patch) | |
tree | ca38c6453801d992168499820335b3110b2c06d0 /puppet/modules/site_apache/manifests/common/autorestart.pp | |
parent | 4d35718a58a11c399cca7001ac3ae73cd292fabf (diff) |
Rename extensions module to autorestart
Diffstat (limited to 'puppet/modules/site_apache/manifests/common/autorestart.pp')
-rw-r--r-- | puppet/modules/site_apache/manifests/common/autorestart.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/modules/site_apache/manifests/common/autorestart.pp b/puppet/modules/site_apache/manifests/common/autorestart.pp new file mode 100644 index 00000000..aa13d4ef --- /dev/null +++ b/puppet/modules/site_apache/manifests/common/autorestart.pp @@ -0,0 +1,15 @@ +# +# Adds autorestart extension to apache on crash +# +class site_apache::common::autorestart { + + include ::systemd + file { '/etc/systemd/system/apache2.service.d/autorestart.conf': + source => 'puppet:///modules/site_apache/autorestart.conf', + owner => 'root', + group => 'root', + mode => '0644', + require => Service['apache'], + notify => Exec['systemctl-daemon-reload'] + } +} |