# @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)
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,
) inherits bacula {
- $storage_secret = hkdf('/etc/puppet/secret', "bacula-sd-${::fqdn}")
package { 'bacula-sd':
ensure => installed
purge => true,
force => true,
recurse => true,
- source => 'puppet:///files/empty/',
notify => Exec['bacula-sd restart-when-idle']
}
port => $port_sd,
target => 'bacula-sd',
}
- Ferm::Rule::Simple <<| tag == "bacula::director-to-storage::${bacula::bacula_director_address}" |>>;
+ Ferm::Rule::Simple <<| tag == 'bacula::director-to-storage' |>>;
Ferm::Rule::Simple <<| tag == "bacula::fd-to-storage::${::fqdn}" |>>;
file { '/etc/bacula/storage-conf.d/empty.conf':
| EOF
}
+ Bacula::Storage::Director<<| tag == 'bacula::to-storage' |>>
Bacula::Storage::Client<<| tag == "bacula::to-storage::${::fqdn}" |>>
}