summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_apache/manifests/common/autorestart.pp20
1 files changed, 15 insertions, 5 deletions
diff --git a/puppet/modules/site_apache/manifests/common/autorestart.pp b/puppet/modules/site_apache/manifests/common/autorestart.pp
index 6d8c4c3a..8b7b590d 100644
--- a/puppet/modules/site_apache/manifests/common/autorestart.pp
+++ b/puppet/modules/site_apache/manifests/common/autorestart.pp
@@ -3,11 +3,21 @@
#
class site_apache::common::autorestart {
- file { '/etc/systemd/system/apache2.service.d':
- ensure => directory,
- owner => root,
- group => root,
- mode => '0755',
+ file {
+ '/etc/systemd/system/apache2.service.d':
+ ensure => directory,
+ owner => 'root',
+ group => 'root',
+ mode => '0755';
+
+ # Add .placeholder file so directory doesn't get removed by
+ # deb-systemd-helper in a package removal postrm, see
+ # issue #8841 for more details.
+ '/etc/systemd/system/apache2.service.d/.placeholder':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0755';
}
::systemd::unit_file { 'apache2.service.d/autorestart.conf':