source => 'puppet:///modules/apache2/apache2.logrotate',
}
- file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs', '/srv/www/default.debian.org/htdocs-disabled' ]:
- ensure => directory,
- mode => '0755',
- }
-
- file { '/srv/www/default.debian.org/htdocs/index.html':
- content => template('apache2/default-index.html'),
- }
-
- file { '/srv/www/default.debian.org/htdocs-disabled/index.html':
- content => template('apache2/disabled-index.html'),
- }
-
file { '/var/log/apache2':
ensure => directory,
mode => '0755',
+++ /dev/null
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
-<HTML>
-<HEAD>
- <TITLE>Welcome to <%= @hostname %>!</TITLE>
-</HEAD>
-<BODY>
-
-<H1>Welcome to <%= @hostname %>!</H1>
-
-This is <%= @hostname %>, a system run by and for the <a href="https://www.debian.org/">Debian Project</a>.
-She does stuff.
-What kind of stuff and who our kind sponsors are you might learn on
-<a href="https://db.debian.org/machines.cgi?host=<%= @hostname %>">db.debian.org</a>.
-
-<P>
-<HR NOSHADE />
-<FONT size="-1">DSA</FONT>
-
-</BODY>
-</HTML>
+++ /dev/null
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
-<HTML>
-<HEAD>
- <TITLE>Welcome to <%= @hostname %>!</TITLE>
-</HEAD>
-<BODY>
-
-<H1>Welcome to <%= @hostname %>!</H1>
-
-This is <%= @hostname %>, a system run by and for the <a href="https://www.debian.org/">Debian Project</a>.
-<P>
-The service you have requested is currently disabled.
-<P>
-The reason for that and who our kind sponsors are you might learn on
-<a href="https://db.debian.org/machines.cgi?host=<%= @hostname %>">db.debian.org</a>.
-
-<P>
-<HR NOSHADE />
-<FONT size="-1">DSA</FONT>
-
-</BODY>
-</HTML>
--- /dev/null
+#
+class webserver::defaultpage {
+ file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs', '/srv/www/default.debian.org/htdocs-disabled' ]:
+ ensure => directory,
+ mode => '0755',
+ }
+
+ file { '/srv/www/default.debian.org/htdocs/index.html':
+ content => template('webserver/default-index.html'),
+ }
+
+ file { '/srv/www/default.debian.org/htdocs-disabled/index.html':
+ content => template('webserver/disabled-index.html'),
+ }
+}
#
class webserver {
+ include webserver::defaultpage
+
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',
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <TITLE>Welcome to <%= @hostname %>!</TITLE>
+</HEAD>
+<BODY>
+
+<H1>Welcome to <%= @hostname %>!</H1>
+
+This is <%= @hostname %>, a system run by and for the <a href="https://www.debian.org/">Debian Project</a>.
+She does stuff.
+What kind of stuff and who our kind sponsors are you might learn on
+<a href="https://db.debian.org/machines.cgi?host=<%= @hostname %>">db.debian.org</a>.
+
+<P>
+<HR NOSHADE />
+<FONT size="-1">DSA</FONT>
+
+</BODY>
+</HTML>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <TITLE>Welcome to <%= @hostname %>!</TITLE>
+</HEAD>
+<BODY>
+
+<H1>Welcome to <%= @hostname %>!</H1>
+
+This is <%= @hostname %>, a system run by and for the <a href="https://www.debian.org/">Debian Project</a>.
+<P>
+The service you have requested is currently disabled.
+<P>
+The reason for that and who our kind sponsors are you might learn on
+<a href="https://db.debian.org/machines.cgi?host=<%= @hostname %>">db.debian.org</a>.
+
+<P>
+<HR NOSHADE />
+<FONT size="-1">DSA</FONT>
+
+</BODY>
+</HTML>