1 # Bacula client config on the director
3 # This is stored config by a client, collected on the director
5 # @param port_fd port that this node's bacula-fd is listening on
7 Integer $port_fd = 9102,
11 $bacula_pool_name = $bacula::bacula_pool_name
12 $bacula_filestor_name = $bacula::bacula_filestor_name
13 $bacula_filestor_device = $bacula::bacula_filestor_device
14 $bacula_storage_address = $bacula::bacula_storage_address
15 $bacula_storage_port = $bacula::bacula_storage_port
16 $bacula_storage_secret = $bacula::bacula_storage_secret
18 $bacula_ca_path = $bacula::bacula_ca_path
19 $bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert
20 $bacula_ssl_client_key = $bacula::bacula_ssl_client_key
22 $bacula_client_name = "${name}-fd"
23 $bacula_client_secret = hkdf('/etc/puppet/secret', "bacula-fd-${name}")
26 file { "/etc/bacula/conf.d/${name}.conf":
27 content => template('bacula/per-client.conf.erb'),
30 notify => Exec['bacula-director reload']
33 file { "/etc/bacula/storages-list.d/${name}.storage":
34 content => "${bacula::bacula_filestor_name}-${client}\n",
37 notify => Exec['bacula-director reload']