continue with moving director address to a more local thing
[mirror/dsa-puppet.git] / modules / bacula / manifests / director.pp
index ca065c7..5aaa061 100644 (file)
@@ -8,7 +8,7 @@
 # @param port_dir       Port that the director should listen on
 # @param db_sslca       SSL CA store for DB access
 # @param director_name  bacula name of this dir instance
-# @param director_address  address of this sd instance that other instances should connect to (dns name)
+# @param director_address  address of this dir instance that other instances should connect to (dns name)
 class bacula::director(
   String  $db_address,
   Integer $db_port,
@@ -28,6 +28,13 @@ class bacula::director(
   $some_pool_name = "poolfull-${pool_name}-${director_address}"
   $some_client_name = "${director_address}-fd"
 
+  # let the SD know we exist
+  @@bacula::storage::director{ $::fqdn:
+    tag              => 'bacula::to-storage',
+    director_name    => $director_name,
+    director_address => $director_address,
+  }
+
   ensure_packages ( [
     'bacula-director-pgsql',
     'bacula-common',