# our bacula director
#
-# @param pool_name A string to be used in pool names
-# @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 port_dir Port that the director should listen on
-# @param db_sslca SSL CA store for DB access
+# @param pool_name A token to be used in pool names
+# @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 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
class bacula::director(
String $db_address,
Integer $db_port,
String $pool_name = 'bacula',
Integer $port_dir = 9101,
Optional[String] $db_sslca = undef,
+ #String $storage_name = "${::fqdn}-dir",
+ String $director_name = $bacula::bacula_director_name,
) inherits bacula {
# used by e.g. bconsole
########################################################################
Director {
- Name = <%= @bacula_director_name %>
+ Name = <%= @director_name %>
Description = <%= @hostname %> - <%= @domain %> Bacula Director
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
#
Director {
- Name = <%= @bacula_director_name %>
+ Name = <%= @director_name %>
DIRport = <%= @port_dir %>
address = <%= @bacula_director_address %>
Password = "<%= @director_secret %>"