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"];
21 notify => Exec["bacula-director restart"]
23 "/etc/bacula/bacula-dir.conf":
24 content => template("bacula/bacula-dir.conf.erb"),
27 require => Package["bacula-director-pgsql"],
28 notify => Exec["bacula-director restart"]
33 "bacula-director restart":
34 path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
38 define bacula_client($client) {
39 # These must be kept in sync with the settings in bacula.pp
40 $bacula_client_name = "$client-fd"
41 $bacula_client_secret = hmac("/etc/puppet/secret", "bacula-fd-$client")
44 "/etc/bacula/conf.d/$client.conf":
45 content => template("bacula/per-client.conf.erb"),
48 notify => Exec["bacula-director restart"]
53 bacula_client(allnodeinfo('hostname', ''))