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'),
35 apache2::site { 'xx-default-ssl':
36 site => 'default-debian.org-ssl',
37 content => template('apache2/default-debian.org-ssl.erb'),
40 apache2::site { '000-default':
44 apache2::config { 'serve-cgi-bin':
48 apache2::config { 'ressource-limits':
53 $memlimit = 512 * 1024 * 1024
54 } elsif has_role('dgit_git') {
55 $memlimit = 512 * 1024 * 1024
56 } elsif has_role('sso') {
57 $memlimit = 512 * 1024 * 1024
58 } elsif has_role('popcon') {
59 $memlimit = 512 * 1024 * 1024
60 } elsif has_role('qamaster') {
61 $memlimit = 300 * 1024 * 1024
63 $memlimit = 192 * 1024 * 1024
66 apache2::config { 'resource-limits':
67 content => template('apache2/resource-limits.erb'),
70 apache2::config { 'security':
71 source => 'puppet:///modules/apache2/security',
74 apache2::config { 'logformat-privacy':
75 source => 'puppet:///modules/apache2/logformat-privacy',
78 apache2::config { 'local-serverinfo':
79 source => 'puppet:///modules/apache2/local-serverinfo',
82 apache2::config { 'server-status':
83 source => 'puppet:///modules/apache2/server-status',
86 apache2::config { 'puppet-ssl-macros':
87 source => 'puppet:///modules/apache2/puppet-ssl-macros',
90 apache2::config { 'puppet-ftp-macros':
91 source => 'puppet:///modules/apache2/puppet-ftp-macros',
94 apache2::config { 'puppet-config':
95 content => template('apache2/puppet-config.erb'),
98 apache2::config { 'pratchett':
99 source => 'puppet:///modules/apache2/pratchett',
102 if $::lsbmajdistrelease > 7 {
103 file { '/etc/apache2/mods-available/mpm_worker.conf':
104 content => template('apache2/mpm_worker.erb'),
108 file { '/etc/apache2/sites-available/common-ssl.inc':
112 file { '/etc/logrotate.d/apache2':
113 source => 'puppet:///modules/apache2/apache2.logrotate',
116 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
121 file { '/srv/www/default.debian.org/htdocs/index.html':
122 content => template('apache2/default-index.html'),
125 file { '/var/log/apache2/.nobackup':
130 munin::check { 'apache_accesses': }
131 munin::check { 'apache_processes': }
132 munin::check { 'apache_volume': }
133 munin::check { 'apache_servers': }
134 munin::check { 'ps_apache2':
138 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
139 include apache2::dynamic
141 @ferm::rule { 'dsa-http':
143 description => 'Allow web access',
144 rule => '&SERVICE(tcp, (http https))'
148 @ferm::rule { 'dsa-http-v6':
151 description => 'Allow web access',
152 rule => '&SERVICE(tcp, (http https))'
155 exec { 'service apache2 reload':
156 path => '/usr/bin:/usr/sbin:/bin:/sbin',
157 command => 'service apache2 reload',
159 require => Package['apache2'],