X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fclient.pp;h=200f4b01b6053166793d5b1034f224531b7063f2;hb=e09b1d7607ce74df99e1324e405c2877d09bee79;hp=bc9a9253aab150f0ae62236dcbc74bd15d82ad69;hpb=710c80f43aed35f4c0f061274b525ae422392975;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index bc9a9253a..200f4b01b 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -3,9 +3,11 @@ # this mostly configures the file daemon, but also firewall rules and # fragments to sent to the other servers. # +# @param storage_server The storage server to use for this client # @param port_fd Port that bacula-fd listens on # @param ensure present or absent class bacula::client( + String $storage_server, Integer $port_fd = 9102, Enum['present', 'absent'] $ensure = defined(Class['bacula::not_a_client']) ? { true => 'absent', default => 'present' }, ) inherits bacula { @@ -15,7 +17,9 @@ class bacula::client( $reverse_ensure = $ensure ? { 'present' => 'absent', 'absent' => 'present' } if $ensure == 'present' { - @@bacula::storage_per_node { $::fqdn: } + @@bacula::storage::client { $::fqdn: + tag => "bacula::to-storage::${storage_server}" + } @@bacula::node { $::fqdn: port_fd => $port_fd,