# include apache2
#
class apache2 {
+ include webserver
+
package { 'apache2':
ensure => installed,
}
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',
}
--- /dev/null
+#
+class webserver {
+ file { '/etc/cron.d/puppet-export-scheduled-shutdown': ensure => absent, }
+ concat::fragment { 'dsa-puppet-stuff--webserver-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
+ }
+}