X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector%2Fclient.pp;h=09117c66b5c6f0cd867681c3948cfcba098bb005;hb=5419a3761db7fb6dbf42a0097275f9723f7fa910;hp=402a997085275af7f10ee46d4084deac6e957edd;hpb=e272b442942830a6eed50748eb63aa3b6318ca2b;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/director/client.pp b/modules/bacula/manifests/director/client.pp index 402a99708..09117c66b 100644 --- a/modules/bacula/manifests/director/client.pp +++ b/modules/bacula/manifests/director/client.pp @@ -2,11 +2,15 @@ # # This is stored config by a client, collected on the director # -# @param port_fd port that this node's bacula-fd is listening on -# @param client The name of the client (relevant for device names, media type names, etc.) +# @param port_fd port that this node's bacula-fd is listening on +# @param client name of the client (relevant for device names, media type names, etc.) +# @param client_name bacula client name +# @param client_secret shared secret between director and client define bacula::director::client ( - Integer $port_fd = 9102, - String $client = $name, + Integer $port_fd, + Stdlib::Host $client = $name, + String $client_name, + String $client_secret, ) { include bacula::director @@ -14,9 +18,6 @@ define bacula::director::client ( $bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert $bacula_ssl_client_key = $bacula::bacula_ssl_client_key - $client_name = "${client}-fd" - $client_secret = hkdf('/etc/puppet/secret', "bacula-fd-${client}") - # we define this in both bacula::director::client_from_storage and # bacula::director::client and it needs to match. $pool_name = "${bacula::director::pool_name}-${client}"