- "/etc/logrotate.d/apache2":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/logrotate.d/apache2",
- "puppet:///apache2/common/etc/logrotate.d/apache2" ];
-
- "/srv/www":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org/htdocs":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org/htdocs/index.html":
- content => template("apache2/default-index.html");
-
- # sometimes this is a symlink
- #"/var/log/apache2":
- # mode => 755,
- # ensure => directory;
- }
-
- exec { "reload-apache2":
- command => "/etc/init.d/apache2 reload",
- refreshonly => true,
+ "/etc/apache2/sites-available/default-debian.org":
+ content => template("apache2/default-debian.org.erb"),
+ require => Package["apache2"],
+ notify => Exec["reload-apache2"];
+
+ "/etc/logrotate.d/apache2":
+ source => [ "puppet:///modules/apache2/per-host/$fqdn/etc/logrotate.d/apache2",
+ "puppet:///modules/apache2/common/etc/logrotate.d/apache2" ];
+
+ "/srv/www":
+ mode => 755,
+ ensure => directory;
+ "/srv/www/default.debian.org":
+ mode => 755,
+ ensure => directory;
+ "/srv/www/default.debian.org/htdocs":
+ mode => 755,
+ ensure => directory;
+ "/srv/www/default.debian.org/htdocs/index.html":
+ content => template("apache2/default-index.html");
+
+ # sometimes this is a symlink
+ #"/var/log/apache2":
+ # mode => 755,
+ # ensure => directory;
+ }
+
+ exec {
+ "reload-apache2":
+ command => "/etc/init.d/apache2 reload",
+ refreshonly => true;
+ "force-reload-apache2":
+ command => "/etc/init.d/apache2 force-reload",
+ refreshonly => true;
+ }
+ case $hostname {
+ chopin,franck,morricone: {
+ package {
+ "libapache2-mod-macro": ensure => installed;
+ }
+ enable_module {
+ "macro":;
+ }
+ file {
+ "/etc/apache2/conf.d/puppet-builddlist":
+ content => template("apache2/conf-builddlist.erb"),
+ require => Package["apache2"],
+ notify => Exec["reload-apache2"];
+ }