+# = Class: roles
+#
+# Lookup role and include relevant classes for roles
+#
+# == Sample Usage:
+#
+# include roles
+#
class roles {
if has_role('puppetmaster') {
include munin::master
}
- if getfromhash($site::nodeinfo, 'nagiosmaster') {
+ if has_role('nagiosmaster') {
# include nagios::server
ssl::service { 'nagios.debian.org':
notify => Service['apache2'],
include buildd
}
- if has_role('porterbox') {
+ # XXX: turn this into a real role
+ if getfromhash($site::nodeinfo, 'porterbox') {
include porterbox
}
include roles::bugs_mirror
}
+ if has_role('bugs_base') {
+ ssl::service { 'bugs.debian.org':
+ notify => Service['apache2'],
+ }
+ }
+ if has_role('bugs_master') {
+ ssl::service { 'bugs-master.debian.org':
+ notify => Service['apache2'],
+ }
+ }
+
if has_role('ftp_master') {
include roles::ftp_master
include roles::dakmaster
}
- if has_role('apache2_security_mirror') {
+ # XXX: turn this into a real role
+ if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
include roles::security_mirror
}
- if has_role('apache2_www_mirror') {
+ # XXX: turn this into a real role
+ if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
include roles::www_mirror
}
include roles::ftp_upload
}
+ if has_role('git_master') {
+ include roles::git_master
+ }
+
if has_role('security_master') {
include roles::security_master
include roles::dakmaster
include roles::udd
}
+ if has_role('sso') {
+ include roles::sso
+ }
+
if has_role('buildd_master') {
include roles::buildd_master
}
if has_role('release') {
include roles::release
}
+
+ if has_role('rtc') {
+ include roles::rtc
+ }
+
+ if has_role('postgres_backup_server') {
+ include postgres::backup_server
+ }
+
+ if has_role('packages') {
+ ssl::service { 'packages.debian.org':
+ notify => Service['apache2'],
+ }
+ }
}