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() {
39 # These must be kept in sync with the settings in bacula.pp
40 $bacula_client_name = "${name}-fd"
41 $bacula_client_secret = hmac("/etc/puppet/secret", "bacula-fd-${name}")
45 "/etc/bacula/conf.d/${name}.conf":
46 content => template("bacula/per-client.conf.erb"),
49 notify => Exec["bacula-director restart"]
53 $allhosts = keys($site::allnodeinfo)
55 bacula_client { $allhosts: }