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 # @param messages_name name of the Messages Resource
8 define bacula::storage::director(
10 Stdlib::Host $director_address,
11 String $messages_name,
13 include bacula::storage
15 # this is created in both bacula::storage::client and
16 # bacula::storage::director and needs to be the same
17 $dir_storage_secret = hkdf('/etc/puppet/secret', "bacula::director<->storage::${director_address}<->${::fqdn}")
20 "/etc/bacula/storage-conf.d/Dir_${director_address}.conf":
21 content => template('bacula/storage/sd-per-director.conf.erb'),
24 notify => Exec['bacula-sd restart-when-idle'],