1 define enable_module($module) {
2 exec { "/usr/sbin/a2enmod $module": }
6 include munin-node::apache
9 apache2: ensure => installed;
10 logrotate: ensure => installed;
14 "info": module => info;
15 "status": module => status;
19 "/etc/apache2/conf.d/ressource-limits":
20 content => template("apache2/ressource-limits.erb"),
21 require => Package["apache2"],
22 notify => Exec["apache2 reload"];
23 "/etc/apache2/conf.d/security":
24 source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/security",
25 "puppet:///apache2/common/etc/apache2/conf.d/security" ],
26 require => Package["apache2"],
27 notify => Exec["apache2 reload"];
28 "/etc/apache2/conf.d/local-serverinfo":
29 source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/local-serverinfo",
30 "puppet:///apache2/common/etc/apache2/conf.d/local-serverinfo" ],
31 require => Package["apache2"],
32 notify => Exec["apache2 reload"];
33 "/etc/apache2/conf.d/server-status":
34 source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/server-status",
35 "puppet:///apache2/common/etc/apache2/conf.d/server-status" ],
36 require => Package["apache2"],
37 notify => Exec["apache2 reload"];
39 "/etc/apache2/sites-available/default-debian.org":
40 source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/sites-available/default-debian.org",
41 "puppet:///apache2/common/etc/apache2/sites-available/default-debian.org" ],
42 require => Package["apache2"],
43 notify => Exec["apache2 reload"];
45 "/etc/logrotate.d/apache2":
46 source => [ "puppet:///apache2/per-host/$fqdn/etc/logrotate.d/apache2",
47 "puppet:///apache2/common/etc/logrotate.d/apache2" ];
52 "/srv/www/default.debian.org":
55 "/srv/www/default.debian.org/htdocs":
58 "/srv/www/default.debian.org/htdocs/index.html":
59 content => template("apache2/default-index.html");
61 # sometimes this is a symlink
64 # ensure => directory;
67 exec { "apache2 reload":
68 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",