3 # Standard apache config debian.org hosts
16 require => Package['apache2'],
19 apache2::module { 'info': }
20 apache2::module { 'status': }
21 apache2::module { 'headers': }
22 apache2::module { 'macro': }
24 apache2::site { '00-default':
25 site => 'default-debian.org',
26 content => template('apache2/default-debian.org.erb'),
28 apache2::site { 'xx-default-ssl':
29 site => 'default-debian.org-ssl',
30 content => template('apache2/default-debian.org-ssl.erb'),
33 apache2::site { '000-default':
37 apache2::config { 'serve-cgi-bin':
41 apache2::config { 'ressource-limits':
46 $memlimit = 512 * 1024 * 1024
47 } elsif has_role('dgit_git') {
48 $memlimit = 512 * 1024 * 1024
49 } elsif has_role('sso') {
50 $memlimit = 512 * 1024 * 1024
51 } elsif has_role('popcon') {
52 $memlimit = 512 * 1024 * 1024
53 } elsif has_role('qamaster') {
54 $memlimit = 300 * 1024 * 1024
56 $memlimit = 192 * 1024 * 1024
59 apache2::config { 'resource-limits':
60 content => template('apache2/resource-limits.erb'),
63 apache2::config { 'security':
64 source => 'puppet:///modules/apache2/security',
67 apache2::config { 'logformat-privacy':
68 source => 'puppet:///modules/apache2/logformat-privacy',
71 apache2::config { 'local-serverinfo':
72 source => 'puppet:///modules/apache2/local-serverinfo',
75 apache2::config { 'server-status':
76 source => 'puppet:///modules/apache2/server-status',
79 apache2::config { 'puppet-ssl-macros':
80 source => 'puppet:///modules/apache2/puppet-ssl-macros',
83 apache2::config { 'puppet-ftp-macros':
84 source => 'puppet:///modules/apache2/puppet-ftp-macros',
87 apache2::config { 'puppet-config':
88 content => template('apache2/puppet-config.erb'),
91 apache2::config { 'pratchett':
92 source => 'puppet:///modules/apache2/pratchett',
95 apache2::module { 'mpm_event': ensure => absent }
96 apache2::module { 'mpm_worker': }
97 if $::lsbmajdistrelease > 7 {
98 file { '/etc/apache2/mods-available/mpm_worker.conf':
99 content => template('apache2/mpm_worker.erb'),
103 file { '/etc/apache2/sites-available/common-ssl.inc':
107 file { '/etc/logrotate.d/apache2':
108 source => 'puppet:///modules/apache2/apache2.logrotate',
111 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs', '/srv/www/default.debian.org/htdocs-disabled' ]:
116 file { '/srv/www/default.debian.org/htdocs/index.html':
117 content => template('apache2/default-index.html'),
120 file { '/srv/www/default.debian.org/htdocs-disabled/index.html':
121 content => template('apache2/disabled-index.html'),
124 file { '/var/log/apache2/.nobackup':
129 munin::check { 'apache_accesses': }
130 munin::check { 'apache_processes': }
131 munin::check { 'apache_volume': }
132 munin::check { 'apache_servers': }
133 munin::check { 'ps_apache2':
136 # The munin script needs this
137 package { 'libwww-perl':
141 if $::hostname in [beach,buxtehude,picconi,pkgmirror-csail] {
142 include apache2::dynamic
144 @ferm::rule { 'dsa-http':
146 description => 'Allow web access',
147 rule => '&SERVICE(tcp, (http https))'
151 @ferm::rule { 'dsa-http-v6':
154 description => 'Allow web access',
155 rule => '&SERVICE(tcp, (http https))'
158 exec { 'service apache2 reload':
159 path => '/usr/bin:/usr/sbin:/bin:/sbin',
160 command => 'service apache2 reload',
162 require => Package['apache2'],
165 apache2::config { 'puppet-ssl-key-pins':
166 content => template('apache2/ssl-key-pins.erb'),
167 notify => Exec['service apache2 reload'],