1 # Bacula sd config: director snippet
3 # Each/The director exports this class to be collected by each/the storage.
5 # @param director_name bacula name of the dir instance
6 # @param director_address address of this dir instance that other instances should connect to (dns name)
7 define bacula::storage::director(
9 Stdlib::Host $director_address,
11 include bacula::storage
13 # this is created in both bacula::storage::client and
14 # bacula::storage::director and needs to be the same
15 $dir_storage_secret = hkdf('/etc/puppet/secret', "bacula::director<->storage::${director_address}<->${::fqdn}")
18 "/etc/bacula/storage-conf.d/Dir_${director_address}.conf":
19 content => template('bacula/storage/sd-per-director.conf.erb'),
22 notify => Exec['bacula-sd restart-when-idle'],