+# the bacula storage node
+#
+# @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
+# @param storage_address address of this sd instance that other instances should connect to (dns name)
+# @param has_ipv4 SD should listen on ipv4
+# @param has_ipv6 SD should listen on ipv6
+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",
+ Stdlib::Host $storage_address = $::fqdn,
+ Boolean $has_ipv4 = $bacula::public_addresses.any |$addr| { $addr =~ Stdlib::IP::Address::V4 },
+ Boolean $has_ipv6 = $bacula::public_addresses.any |$addr| { $addr =~ Stdlib::IP::Address::V6 },
+) inherits bacula {