Optional[String] $db_sslca = undef,
) inherits bacula {
+ # used by e.g. bconsole
+ $director_secret = hkdf('/etc/puppet/secret', "bacula-dir-${::hostname}")
# the RestoreFiles Job needs a Pool. Any valid pool.
$some_pool_name = "poolfull-${pool_name}-${bacula::bacula_director_address}"
String $bacula_director_address = 'dinis.debian.org',
String $bacula_storage_address = 'storace.debian.org',
- String $bacula_director_secret = hkdf('/etc/puppet/secret', "bacula-dir-${::hostname}"),
String $bacula_db_secret = hkdf('/etc/puppet/secret', "bacula-db-${::hostname}"),
String $bacula_client_secret = hkdf('/etc/puppet/secret', "bacula-fd-${::fqdn}"),
String $bacula_monitor_secret = hkdf('/etc/puppet/secret', "bacula-monitor-${bacula_director_name}"),
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
Maximum Concurrent Jobs = 20
- Password = "<%= @bacula_director_secret %>"
+ Password = "<%= @director_secret %>"
Messages = Daemon
DirAddresses = {
# Always have localhost in, then the configured IP
Director {
Name = <%= @bacula_director_name %>
- DIRport = 9101
+ DIRport = <%= @port_dir %>
address = <%= @bacula_director_address %>
- Password = "<%= @bacula_director_secret %>"
+ Password = "<%= @director_secret %>"
TLS Enable = yes
TLS Require = yes