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 exec { 'bacula-director reload':
15 path => '/usr/bin:/usr/sbin:/bin:/sbin',
16 command => 'service bacula-director reload',
21 file { '/etc/bacula/conf.d':
28 source => 'puppet:///files/empty/',
29 notify => Exec['bacula-director reload']
32 file { '/etc/bacula/bacula-dir.conf':
33 content => template('bacula/bacula-dir.conf.erb'),
36 require => Package['bacula-director-pgsql'],
37 notify => Exec['bacula-director reload']
40 @ferm::rule { 'dsa-bacula-dir':
42 description => 'Allow bacula access from localhost',
43 rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_ip} localhost) ACCEPT",
46 file { '/etc/bacula/conf.d/empty.conf':
50 require => Package['bacula-director-pgsql'],
51 notify => Exec['bacula-director reload']
56 package { 'bacula-console':
60 file { '/etc/bacula/bconsole.conf':
61 content => template('bacula/bconsole.conf.erb'),
64 require => Package['bacula-console']