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 { 'ressource-limits':
44 if has_role('buildd_master') {
45 $memlimit = 192 * 1024 * 1024
46 } elsif has_role('buildd_ports_master') {
47 $memlimit = 192 * 1024 * 1024
48 } elsif has_role('nagiosmaster') {
49 $memlimit = 96 * 1024 * 1024
50 } elsif has_role('packagesqamaster') {
51 $memlimit = 192 * 1024 * 1024
52 } elsif has_role('nm') {
53 $memlimit = 96 * 1024 * 1024
55 $memlimit = 32 * 1024 * 1024
58 apache2::config { 'resource-limits':
59 content => template('apache2/resource-limits.erb'),
62 apache2::config { 'security':
63 source => 'puppet:///modules/apache2/security',
66 apache2::config { 'logformat-privacy':
67 source => 'puppet:///modules/apache2/logformat-privacy',
70 apache2::config { 'local-serverinfo':
71 source => 'puppet:///modules/apache2/local-serverinfo',
74 apache2::config { 'server-status':
75 source => 'puppet:///modules/apache2/server-status',
78 apache2::config { 'puppet-ssl-macros':
79 source => 'puppet:///modules/apache2/puppet-ssl-macros',
82 apache2::config { 'puppet-config':
83 source => 'puppet:///modules/apache2/puppet-config',
86 file { '/etc/apache2/sites-available/common-ssl.inc':
90 file { '/etc/logrotate.d/apache2':
91 source => 'puppet:///modules/apache2/apache2.logrotate',
94 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
99 file { '/srv/www/default.debian.org/htdocs/index.html':
100 content => template('apache2/default-index.html'),
103 file { '/var/log/apache2/.nobackup':
108 munin::check { 'apache_accesses': }
109 munin::check { 'apache_processes': }
110 munin::check { 'apache_volume': }
111 munin::check { 'apache_servers': }
112 munin::check { 'ps_apache2':
116 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
117 include apache2::dynamic
119 @ferm::rule { 'dsa-http':
121 description => 'Allow web access',
122 rule => '&SERVICE(tcp, (http https))'
126 @ferm::rule { 'dsa-http-v6':
129 description => 'Allow web access',
130 rule => '&SERVICE(tcp, (http https))'