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('dgit_git') {
51 $memlimit = 512 * 1024 * 1024
52 } elsif has_role('sso') {
53 $memlimit = 512 * 1024 * 1024
54 } elsif has_role('popcon') {
55 $memlimit = 512 * 1024 * 1024
56 } elsif has_role('qamaster') {
57 $memlimit = 300 * 1024 * 1024
59 $memlimit = 192 * 1024 * 1024
62 apache2::config { 'resource-limits':
63 content => template('apache2/resource-limits.erb'),
66 apache2::config { 'security':
67 source => 'puppet:///modules/apache2/security',
70 apache2::config { 'logformat-privacy':
71 source => 'puppet:///modules/apache2/logformat-privacy',
74 apache2::config { 'local-serverinfo':
75 source => 'puppet:///modules/apache2/local-serverinfo',
78 apache2::config { 'server-status':
79 source => 'puppet:///modules/apache2/server-status',
82 apache2::config { 'puppet-ssl-macros':
83 source => 'puppet:///modules/apache2/puppet-ssl-macros',
86 apache2::config { 'puppet-config':
87 content => template('apache2/puppet-config.erb'),
90 apache2::config { 'pratchett':
91 source => 'puppet:///modules/apache2/pratchett',
94 if $::lsbmajdistrelease > 7 {
95 file { '/etc/apache2/mods-available/mpm_worker.conf':
96 content => template('apache2/mpm_worker.erb'),
100 file { '/etc/apache2/sites-available/common-ssl.inc':
104 file { '/etc/logrotate.d/apache2':
105 source => 'puppet:///modules/apache2/apache2.logrotate',
108 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
113 file { '/srv/www/default.debian.org/htdocs/index.html':
114 content => template('apache2/default-index.html'),
117 file { '/var/log/apache2/.nobackup':
122 munin::check { 'apache_accesses': }
123 munin::check { 'apache_processes': }
124 munin::check { 'apache_volume': }
125 munin::check { 'apache_servers': }
126 munin::check { 'ps_apache2':
130 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
131 include apache2::dynamic
133 @ferm::rule { 'dsa-http':
135 description => 'Allow web access',
136 rule => '&SERVICE(tcp, (http https))'
140 @ferm::rule { 'dsa-http-v6':
143 description => 'Allow web access',
144 rule => '&SERVICE(tcp, (http https))'
147 exec { 'service apache2 reload':
148 path => '/usr/bin:/usr/sbin:/bin:/sbin',
149 command => 'service apache2 reload',
151 require => Package['apache2'],