Move filestore device and media type name to the storage, part I
[mirror/dsa-puppet.git] / modules / bacula / manifests / node.pp
index 6a704b2..38ce305 100644 (file)
@@ -1,5 +1,11 @@
-# a bacula node.  This is stored config by a client, collected on the director
-define bacula::node($bacula_client_port = $bacula::bacula_client_port) {
+# Bacula client config on the director
+#
+# This is stored config by a client, collected on the director
+#
+# @param port_fd   port that this node's bacula-fd is listening on
+define bacula::node (
+  Integer $port_fd = 9102,
+) {
   include bacula
 
   $bacula_pool_name         = $bacula::bacula_pool_name
@@ -25,7 +31,7 @@ define bacula::node($bacula_client_port = $bacula::bacula_client_port) {
   }
 
   file { "/etc/bacula/storages-list.d/${name}.storage":
-    content => "$bacula::bacula_filestor_name-$client\n",
+    content => "${bacula::bacula_filestor_name}-${client}\n",
     mode    => '0440',
     group   => bacula,
     notify  => Exec['bacula-director reload']