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
51 $memlimit = 192 * 1024 * 1024
54 apache2::config { 'resource-limits':
55 content => template('apache2/resource-limits.erb'),
58 apache2::config { 'security':
59 source => 'puppet:///modules/apache2/security',
62 apache2::config { 'logformat-privacy':
63 source => 'puppet:///modules/apache2/logformat-privacy',
66 apache2::config { 'local-serverinfo':
67 source => 'puppet:///modules/apache2/local-serverinfo',
70 apache2::config { 'server-status':
71 source => 'puppet:///modules/apache2/server-status',
74 apache2::config { 'puppet-ssl-macros':
75 source => 'puppet:///modules/apache2/puppet-ssl-macros',
78 apache2::config { 'puppet-config':
79 content => template('apache2/puppet-config.erb'),
82 apache2::config { 'pratchett':
83 source => 'puppet:///modules/apache2/pratchett',
86 if $::lsbmajdistrelease > 7 {
87 file { '/etc/apache2/mods-available/mpm_worker.conf':
88 content => template('apache2/mpm_worker.erb'),
92 file { '/etc/apache2/sites-available/common-ssl.inc':
96 file { '/etc/logrotate.d/apache2':
97 source => 'puppet:///modules/apache2/apache2.logrotate',
100 file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs' ]:
105 file { '/srv/www/default.debian.org/htdocs/index.html':
106 content => template('apache2/default-index.html'),
109 file { '/var/log/apache2/.nobackup':
114 munin::check { 'apache_accesses': }
115 munin::check { 'apache_processes': }
116 munin::check { 'apache_volume': }
117 munin::check { 'apache_servers': }
118 munin::check { 'ps_apache2':
122 if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1] {
123 include apache2::dynamic
125 @ferm::rule { 'dsa-http':
127 description => 'Allow web access',
128 rule => '&SERVICE(tcp, (http https))'
132 @ferm::rule { 'dsa-http-v6':
135 description => 'Allow web access',
136 rule => '&SERVICE(tcp, (http https))'