summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-01-17 14:26:27 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-01-17 14:26:27 -0200
commitb6e19e290eb6395ce0a12bf2307282b00e7456ea (patch)
tree51c8c8a8ee26d0c5d550f59cf181bf84610b5b7f /puppet
parent810df8983e3ada8ad4b0ebbc7e0e3cf01219e33c (diff)
Change autorestart to use systemd::unit_file
Diffstat (limited to 'puppet')
-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']
}
}