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',
20 file { '/etc/bacula/conf.d':
27 source => 'puppet:///files/empty/',
28 notify => Exec['bacula-director reload']
31 file { '/etc/bacula/bacula-dir.conf':
32 content => template('bacula/bacula-dir.conf.erb'),
35 require => Package['bacula-director-pgsql'],
36 notify => Exec['bacula-director reload']
39 @ferm::rule { 'dsa-bacula-dir':
41 description => 'Allow bacula access from localhost',
42 rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_ip} localhost) ACCEPT",
45 file { '/etc/bacula/conf.d/empty.conf':
49 require => Package['bacula-director-pgsql'],
50 notify => Exec['bacula-director reload']
55 package { 'bacula-console':
59 file { '/etc/bacula/bconsole.conf':
60 content => template('bacula/bconsole.conf.erb'),
63 require => Package['bacula-console']
66 file { '/etc/bacula/bacula-volume-purge-action':
68 source => 'puppet:///modules/bacula/bacula-volume-purge-action',
71 file { '/etc/bacula/storages-list.d':
78 source => 'puppet:///files/empty/',
80 file { "/etc/cron.d/dsa-bacula-stuff":
81 content => "@daily root (cat /etc/bacula/storages-list.d/*.storage; echo '$bacula::bacula_filestor_name-catalog') | /etc/bacula/bacula-volume-purge-action\n";