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