# include roles
#
class roles {
- if getfromhash($site::nodeinfo, 'not-bacula-client') {
- include bacula::not_a_client
- }
-
if has_role('muninmaster') {
include munin::master
}
include nagios::server
}
- # XXX: turn this into a real role
- if getfromhash($site::nodeinfo, 'buildd') {
- include buildd
- }
-
if has_role('bugs_mirror') {
include roles::bugs_mirror
}
include roles::syncproxy
}
- if has_role('static_master') {
- include roles::static_master
- }
-
- if has_role('static_mirror') {
- include roles::static_mirror
- } elsif has_role('static_source') {
- include roles::static_source
- }
-
if has_role('weblog_provider') {
include roles::weblog_provider
}
include roles::rtc
}
- if has_role('jenkins') {
- include roles::jenkins
- }
-
if has_role('postgres_backup_server') {
include postgres::backup_server
}