roles:
bugsmx:
- buxtehude.debian.org
- bugs_master:
- - buxtehude.debian.org
- bugs_base:
- - buxtehude.debian.org
- - beach.debian.org
contributors:
- nono.debian.org
dbmaster:
---
+classes:
+ - roles::bugs_master
+
apache2::smaller_number_of_threads: true
# debbugs cgis like to fork and don't deal well with EAGAIN
apache2::rlimitnproc: 450
--- /dev/null
+- the two bugs web hosts handle /srv/bugs.debian.org/cache/libravatar
+ differently. Figure out which is best and move the definition to bugs_web.
+
--- /dev/null
+class roles::bugs_master {
+ include roles::bugs_web
+
+ ssl::service { 'bugs-devel.debian.org': notify => Exec['service apache2 reload'], key => true, }
+ ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
+}
class roles::bugs_mirror {
- include apache2
+ include roles::bugs_web
- rsync::site { 'bugs_mirror':
- source => 'puppet:///modules/roles/bugs_mirror/rsyncd.conf',
- max_clients => 100,
- }
+ rsync::site { 'bugs_mirror':
+ source => 'puppet:///modules/roles/bugs_mirror/rsyncd.conf',
+ max_clients => 100,
+ }
- if $::apache2 {
- apache2::site { '009-bugs-mirror.debian.org':
- site => 'bugs-mirror.debian.org',
- source => 'puppet:///modules/roles/bugs_mirror/bugs-mirror.debian.org',
- }
- }
+ apache2::site { '009-bugs-mirror.debian.org':
+ site => 'bugs-mirror.debian.org',
+ source => 'puppet:///modules/roles/bugs_mirror/bugs-mirror.debian.org',
+ }
- file { '/srv/bugs.debian.org/cache/libravatar':
- ensure => directory,
- owner => 'www-data',
- mode => '0755',
- }
+ file { '/srv/bugs.debian.org/cache/libravatar':
+ ensure => directory,
+ owner => 'www-data',
+ mode => '0755',
+ }
}
--- /dev/null
+class roles::bugs_web {
+ include apache2
+
+ ssl::service { 'bugs.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+ ferm::rule { 'dsa-bugs-abusers':
+ prio => '005',
+ rule => 'saddr (220.243.135/24 220.243.136/24) DROP',
+ }
+}
include nagios::server
}
- if has_role('bugs_base') {
- ssl::service { 'bugs.debian.org':
- notify => Exec['service apache2 reload'],
- key => true,
- }
- ferm::rule { 'dsa-bugs-abusers':
- prio => "005",
- rule => "saddr (220.243.135/24 220.243.136/24) DROP",
- }
- }
- if has_role('bugs_master') {
- ssl::service { 'bugs-devel.debian.org': notify => Exec['service apache2 reload'], key => true, }
- ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
- }
-
if has_role('manpages-dyn') {
include roles::manpages_dyn
}