...
 
Commits (2)
......@@ -9,3 +9,5 @@ modules/roles/manifests/openstack/params.pp
/secret
/*.dpkg-dist
/puppetdb.conf
.yardoc/
doc/
<Directory /run/dsa/shutdown-marker>
Require all granted
</Directory>
Alias /shutdown-in-progress /run/dsa/shutdown-marker/shutdown-in-progress
......@@ -170,6 +170,6 @@ class apache2(
}
apache2::config { 'local-scheduled-shutdown':
source => 'puppet:///modules/apache2/local-scheduled-shutdown',
ensure => 'absent',
}
}
#
class webserver {
include webserver::defaultpage
file { '/etc/cron.d/puppet-export-scheduled-shutdown': ensure => absent, }
concat::fragment { 'puppet-crontab--webserver-export-shutdown':
target => '/etc/cron.d/puppet-crontab',
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
}
}