Undo wrong search/replace
[mirror/dsa-puppet.git] / modules / bacula / manifests / director.pp
index b4e0105..9563749 100644 (file)
@@ -1,5 +1,17 @@
 # our bacula director
-class bacula::director inherits bacula {
+#
+# @param db_address hostname of the postgres server for the catalog DB
+# @param db_port    port of the postgres server for the catalog DB
+# @param db_name    DB name for the catalog DB
+# @param db_user    username for the postgres server for the catalog DB
+# @param db_sslca   SSL CA store for DB access
+class bacula::director(
+  String  $db_address,
+  Integer $db_port,
+  String  $db_name = 'bacula',
+  String  $db_user = 'bacula',
+  Optional[String] $db_sslca = undef,
+) inherits bacula {
 
   ensure_packages ( [
     'bacula-director-pgsql',
@@ -55,7 +67,7 @@ class bacula::director inherits bacula {
     notify  => Exec['bacula-director reload']
   }
 
-  Bacula::Node<<| |>>
+  Bacula::Director::Client<<| tag == "bacula::to-director::${::fqdn}" |>>
 
   package { 'bacula-console':
     ensure => installed;