--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+<IfModule mod_status.c>
+ #
+ # Allow server status reports generated by mod_status,
+ # with the URL of http://servername/server-status
+ # Change the ".example.com" to match your domain to enable.
+ #
+ ExtendedStatus on
+ <Location /server-status>
+ SetHandler server-status
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
+ </Location>
+</IfModule>
+define enable_module($module) {
+ exec { "/usr/sbin/a2enmod $module": }
+}
+
class apache2 {
package {
apache2: ensure => installed;
logrotate: ensure => installed;
}
+ enable_module {
+ "info": module => info;
+ "status": module => status;
+ }
+
file {
"/etc/apache2/conf.d/ressource-limits":
content => template("apache2/ressource-limits.erb"),
"puppet:///apache2/common/etc/apache2/conf.d/security" ],
require => Package["apache2"],
notify => Exec["apache2 reload"];
+ "/etc/apache2/conf.d/local-serverinfo":
+ source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/local-serverinfo",
+ "puppet:///apache2/common/etc/apache2/conf.d/local-serverinfo" ],
+ require => Package["apache2"],
+ "/etc/apache2/conf.d/server-status":
+ source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/server-status",
+ "puppet:///apache2/common/etc/apache2/conf.d/server-status" ],
+ require => Package["apache2"],
+ notify => Exec["apache2 reload"];
"/etc/apache2/sites-available/default-debian.org":
source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/sites-available/default-debian.org",