Put client_port into the stored config
authorPeter Palfrader <peter@palfrader.org>
Sat, 26 Nov 2016 11:31:09 +0000 (11:31 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sat, 26 Nov 2016 11:31:09 +0000 (11:31 +0000)
modules/bacula/manifests/client.pp
modules/bacula/manifests/node.pp

index 34e2b64..7900e9a 100644 (file)
@@ -2,7 +2,9 @@ class bacula::client inherits bacula {
        @@bacula::storage-per-node { $::fqdn: }
 
        if ! getfromhash($site::nodeinfo, 'not-bacula-client') {
-               @@bacula::node { $::fqdn: }
+               @@bacula::node { $::fqdn:
+                       bacula_client_port => $bacula::bacula_client_port,
+               }
        }
 
        package { ['bacula-fd']:
index fbbfbd2..4ee5b40 100644 (file)
@@ -1,4 +1,4 @@
-define bacula::node() {
+define bacula::node($bacula_client_port = $bacula::bacula_client_port) {
 
        include bacula
 
@@ -9,7 +9,6 @@ define bacula::node() {
        $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