move absent cron.d files to one-line statements to make grepping easier
[mirror/dsa-puppet.git] / modules / apache2 / manifests / init.pp
index f279cde..f3a598b 100644 (file)
@@ -97,6 +97,10 @@ class apache2 {
                source => 'puppet:///modules/apache2/headers',
        }
 
+       apache2::config { 'disabled-service':
+               source => 'puppet:///modules/apache2/disabled-service',
+       }
+
        apache2::module { 'mpm_event': ensure => absent }
        if has_role('apache_prefork') {
                apache2::module { 'mpm_worker': ensure => absent }
@@ -181,4 +185,15 @@ class apache2 {
                content => template('apache2/ssl-key-pins.erb'),
                notify  => Exec['service apache2 reload'],
        }
+
+       file { '/etc/cron.d/puppet-export-scheduled-shutdown': ensure => absent, }
+       concat::fragment { 'dsa-puppet-stuff--apache-export-shutdown':
+               target => '/etc/cron.d/dsa-puppet-stuff',
+               content  => @(EOF)
+                       */2 * * * * root mkdir -p /run/dsa/shutdown-marker; if dsa-is-shutdown-scheduled; then echo 'system-in-shutdown' > /run/dsa/shutdown-marker/shutdown-in-progress; else rm -f /run/dsa/shutdown-marker/shutdown-in-progress; fi
+                       | EOF
+       }
+       apache2::config { 'local-scheduled-shutdown':
+               source  => 'puppet:///modules/apache2/local-scheduled-shutdown',
+       }
 }