- if $::hostname in [klecker] {
- onion::service { 'ftp.debian.org':
- port => 80,
- target_address => '130.89.148.12',
- target_port => 81,
- }
+ if has_role('onionbalance') {
+ include onion::balance
+ }
+ if has_role('bgp') {
+ include roles::bgp
+ }
+ if has_role('cdimage-search') {
+ include roles::cdimage_search
+ }
+
+ if has_role('postgresql_server') {
+ include roles::postgresql_server
+ }
+
+ if has_role('bacula_director') {
+ include bacula::director
+ } else {
+ package { 'bacula-console': ensure => purged; }
+ file { '/etc/bacula/bconsole.conf': ensure => absent; }
+ }
+ if has_role('bacula_storage') {
+ include bacula::storage