1 class bacula::director inherits bacula {
4 "bacula-director-pgsql": ensure => installed;
5 "bacula-common": ensure => installed;
6 "bacula-common-pgsql": ensure => installed;
14 require => Package["bacula-director-pgsql"];
22 notify => Exec["bacula-director restart"]
24 "/etc/bacula/bacula-dir.conf":
25 content => template("bacula/bacula-dir.conf.erb"),
28 require => Package["bacula-director-pgsql"],
29 notify => Exec["bacula-director restart"]
34 "bacula-director restart":
35 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
39 define bacula_client() {
40 # These must be kept in sync with the settings in bacula.pp
41 $bacula_client_name = "${name}-fd"
42 $bacula_client_secret = hmac("/etc/puppet/secret", "bacula-fd-${name}")
46 "/etc/bacula/conf.d/${name}.conf":
47 content => template("bacula/per-client.conf.erb"),
50 notify => Exec["bacula-director restart"]
54 # $allhosts = keys($site::allnodeinfo)
55 $allhosts = [ "berlioz.debian.org" ]
56 bacula_client { $allhosts: }
58 @ferm::rule { 'dsa-bacula-dir':
60 description => 'Allow bacula access from localhost',
61 rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr ($bacula_director_address localhost) ACCEPT",