3 # Standard apache config debian.org hosts
16 require => Package['apache2'],
19 apache2::module { 'info': }
20 apache2::module { 'status': }
21 apache2::module { 'headers': }
23 package { 'libapache2-mod-macro':
27 apache2::module { 'macro':
28 require => Package['libapache2-mod-macro']
31 apache2::site { '00-default':
32 site => 'default-debian.org',
33 content => template('apache2/default-debian.org.erb'),
36 apache2::site { '000-default':
40 apache2::config { 'serve-cgi-bin':
44 apache2::config { 'ressource-limits':
49 $memlimit = 512 * 1024 * 1024
50 } elsif has_role('sso') {
51 $memlimit = 512 * 1024 * 1024
52 } elsif has_role('popcon') {
53 $memlimit = 512 * 1024 * 1024
54 } elsif has_role('qamaster') {
55 $memlimit = 300 * 1024 * 1024
57 $memlimit = 192 * 1024 * 1024
60 apache2::config { 'resource-limits':
61 content => template('apache2/resource-limits.erb'),
64 apache2::config { 'security':
65 source => 'puppet:///modules/apache2/security',
68 apache2::config { 'logformat-privacy':
69 source => 'puppet:///modules/apache2/logformat-privacy',
72 apache2::config { 'local-serverinfo':
73 source => 'puppet:///modules/apache2/local-serverinfo',
76 apache2::config { 'server-status':
77 source => 'puppet:///modules/apache2/server-status',
80 apache2::config { 'puppet-ssl-macros':
81 source => 'puppet:///modules/apache2/puppet-ssl-macros',
84 apache2::config { 'puppet-config':
85 content => template('apache2/puppet-config.erb'),
88 apache2::config { 'pratchett':
89 source => 'puppet:///modules/apache2/pratchett',
92 if $::lsbmajdistrelease > 7 {
93 file { '/etc/apache2/mods-available/mpm_worker.conf':
94 content => template('apache2/mpm_worker.erb'),
98 file { '/etc/apache2/sites-available/common-ssl.inc':
102 file { '/etc/logrotate.d/apache2':
103 source => 'puppet:///modules/apache2/apache2.logrotate',
106 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
111 file { '/srv/www/default.debian.org/htdocs/index.html':
112 content => template('apache2/default-index.html'),
115 file { '/var/log/apache2/.nobackup':
120 munin::check { 'apache_accesses': }
121 munin::check { 'apache_processes': }
122 munin::check { 'apache_volume': }
123 munin::check { 'apache_servers': }
124 munin::check { 'ps_apache2':
128 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
129 include apache2::dynamic
131 @ferm::rule { 'dsa-http':
133 description => 'Allow web access',
134 rule => '&SERVICE(tcp, (http https))'
138 @ferm::rule { 'dsa-http-v6':
141 description => 'Allow web access',
142 rule => '&SERVICE(tcp, (http https))'