class bacula (
String $bacula_operator_email = 'bacula-reports@admin.debian.org',
String $bacula_director_name = 'debian-dir',
- String $bacula_storage_name = 'debian-sd',
String $bacula_monitor_name = 'debian-mon',
String $bacula_director_address = 'dinis.debian.org',
# the bacula storage node
#
-# @param backup_path the directory where backups should be stored
-# @param filestor_device Storage device name prefix
-# @param filestor_name Storage device media type name prefix
-# @param port_sd Port for the sd to listen on
+# @param backup_path directory where backups should be stored
+# @param filestor_device storage device name prefix
+# @param filestor_name storage device media type name prefix
+# @param port_sd port for the sd to listen on
+# @param storage_name bacula name of this sd instance
class bacula::storage (
String $backup_path = '/srv/bacula',
String $filestor_device = 'FileStorage',
String $filestor_name = 'File',
Integer $port_sd = 9103,
+ String $storage_name = "${::fqdn}-sd",
) inherits bacula {
$storage_secret = hkdf('/etc/puppet/secret', "bacula-sd-${::fqdn}")
# For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
Storage {
- Name = <%= @bacula_storage_name %>
+ Name = <%= @storage_name %>
SDAddresses = {
# bacula, on Debian 9 (stretch), does not resolve a single name
# to both v4 and v6 addresses. Se we can't just say