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':
19 notify => Service['bacula-director']
24 file { '/etc/bacula/bacula-dir.conf':
25 content => template('bacula/bacula-dir.conf.erb'),
28 require => Package['bacula-director-pgsql'],
29 notify => Service['bacula-director']
32 @ferm::rule { 'dsa-bacula-dir':
34 description => 'Allow bacula access from localhost',
35 rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_address} localhost) ACCEPT",