8 require => Package['apache2'],
11 apache2::module { 'info': }
12 apache2::module { 'status': }
13 apache2::module { 'headers': }
15 package { 'libapache2-mod-macro':
19 apache2::module { 'macro':
20 require => Package['libapache2-mod-macro']
23 apache2::site { '00-default':
24 site => 'default-debian.org',
25 content => template('apache2/default-debian.org.erb'),
28 apache2::site { '000-default':
32 apache2::config { 'ressource-limits':
36 if has_role('buildd_master') {
37 $memlimit = 192 * 1024 * 1024
38 } elsif has_role('nagiosmaster') {
39 $memlimit = 96 * 1024 * 1024
40 } elsif has_role('packagesqamaster') {
41 $memlimit = 192 * 1024 * 1024
42 } elsif has_role('nm') {
43 $memlimit = 96 * 1024 * 1024
45 $memlimit = 32 * 1024 * 1024
48 apache2::config { 'resource-limits':
49 content => template('apache2/resource-limits.erb'),
52 apache2::config { 'security':
53 source => 'puppet:///modules/apache2/security',
56 apache2::config { 'logformat-privacy':
57 source => 'puppet:///modules/apache2/logformat-privacy',
60 apache2::config { 'local-serverinfo':
61 source => 'puppet:///modules/apache2/local-serverinfo',
64 apache2::config { 'server-status':
65 source => 'puppet:///modules/apache2/server-status',
68 apache2::config { 'puppet-ssl-macros':
69 source => 'puppet:///modules/apache2/puppet-ssl-macros',
72 file { '/etc/apache2/sites-available/common-ssl.inc':
76 file { '/etc/logrotate.d/apache2':
77 source => 'puppet:///modules/apache2/apache2.logrotate',
80 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
85 file { '/srv/www/default.debian.org/htdocs/index.html':
86 content => template('apache2/default-index.html'),
89 file { '/var/log/apache2/.nobackup':
94 munin::check { 'apache_accesses': }
95 munin::check { 'apache_processes': }
96 munin::check { 'apache_volume': }
97 munin::check { 'apache_servers': }
98 munin::check { 'ps_apache2':
102 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
103 include apache2::dynamic
105 @ferm::rule { 'dsa-http':
107 description => 'Allow web access',
108 rule => '&SERVICE(tcp, (http https))'
112 @ferm::rule { 'dsa-http-v6':
115 description => 'Allow web access',
116 rule => '&SERVICE(tcp, (http https))'