1 class bacula::director inherits bacula {
3 package { ['bacula-director-pgsql', 'bacula-common', 'bacula-common-pgsql']:
7 service { 'bacula-director':
11 require => Package['bacula-director-pgsql']
14 file { '/etc/bacula/conf.d':
21 source => 'puppet:///files/empty/',
22 notify => Service['bacula-director']
25 file { '/etc/bacula/bacula-dir.conf':
26 content => template('bacula/bacula-dir.conf.erb'),
29 require => Package['bacula-director-pgsql'],
30 notify => Service['bacula-director']
33 @ferm::rule { 'dsa-bacula-dir':
35 description => 'Allow bacula access from localhost',
36 rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_address} localhost) ACCEPT",
39 $clients = ['berlioz.debian.org', 'biber.debian.org', 'draghi.debian.org']
40 bacula::node { $clients: }