X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fnode.pp;h=fbbfbd215447ac4a8d2c94d904747ae65de4f69e;hb=840b3d971bd004204cefeb16623eac990ac7a6c7;hp=d73c34e903458bba2151711fedef1047c39c548f;hpb=a205711a76860949eada466938644cb77ffacdc0;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/node.pp b/modules/bacula/manifests/node.pp index d73c34e90..fbbfbd215 100644 --- a/modules/bacula/manifests/node.pp +++ b/modules/bacula/manifests/node.pp @@ -2,7 +2,17 @@ define bacula::node() { include bacula + $bacula_pool_name = $bacula::bacula_pool_name + $bacula_filestor_name = $bacula::bacula_filestor_name + $bacula_filestor_device = $bacula::bacula_filestor_device + $bacula_storage_address = $bacula::bacula_storage_address + $bacula_storage_port = $bacula::bacula_storage_port + $bacula_storage_secret = $bacula::bacula_storage_secret + $bacula_client_port = $bacula::bacula_client_port + $bacula_ca_path = $bacula::bacula_ca_path + $bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert + $bacula_ssl_client_key = $bacula::bacula_ssl_client_key $bacula_client_name = "${name}-fd" $bacula_client_secret = hkdf('/etc/puppet/secret', "bacula-fd-${name}") @@ -12,7 +22,14 @@ define bacula::node() { content => template('bacula/per-client.conf.erb'), mode => '0440', group => bacula, - notify => Service['bacula-director'] + notify => Exec['bacula-director reload'] + } + + file { "/etc/bacula/storages-list.d/${name}.storage": + content => "$bacula::bacula_filestor_name-$client\n", + mode => '0440', + group => bacula, + notify => Exec['bacula-director reload'] } }