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 file { '/etc/bacula/conf.d/empty.conf':
43 require => Package['bacula-director-pgsql'],
44 notify => Service['bacula-director']
49 package { 'bacula-console':
53 file { '/etc/bacula/bconsole.conf':
54 content => template('bacula/bconsole.conf.erb'),
57 require => Package['bacula-console']