summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/manifests/common
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-01-17 14:26:27 -0200
committervarac <varacanero@zeromail.org>2017-01-18 18:44:21 +0100
commite1767f48c04a469f00a414c2bd85ec2ed0eceb7f (patch)
tree51c8c8a8ee26d0c5d550f59cf181bf84610b5b7f /puppet/modules/site_apache/manifests/common
parent740734a79b143b572da440e203dbadcb471f2e4e (diff)
Change autorestart to use systemd::unit_file
Diffstat (limited to 'puppet/modules/site_apache/manifests/common')
-rw-r--r--puppet/modules/site_apache/manifests/common/autorestart.pp7
1 files changed, 1 insertions, 6 deletions
diff --git a/puppet/modules/site_apache/manifests/common/autorestart.pp b/puppet/modules/site_apache/manifests/common/autorestart.pp
index aa13d4ef..f8213439 100644
--- a/puppet/modules/site_apache/manifests/common/autorestart.pp
+++ b/puppet/modules/site_apache/manifests/common/autorestart.pp
@@ -3,13 +3,8 @@
#
class site_apache::common::autorestart {
- include ::systemd
- file { '/etc/systemd/system/apache2.service.d/autorestart.conf':
+ ::systemd::unit_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']
}
}