Move filestore device and media type name to the storage, part I
[mirror/dsa-puppet.git] / modules / bacula / manifests / client.pp
index bc9a925..200f4b0 100644 (file)
@@ -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,