# this mostly configures the file daemon, but also firewall rules and
# fragments to sent to the other servers.
#
+# @param storage_server The storage server to use for this client
# @param port_fd Port that bacula-fd listens on
# @param ensure present or absent
class bacula::client(
+ String $storage_server,
Integer $port_fd = 9102,
Enum['present', 'absent'] $ensure = defined(Class['bacula::not_a_client']) ? { true => 'absent', default => 'present' },
) inherits bacula {
$reverse_ensure = $ensure ? { 'present' => 'absent', 'absent' => 'present' }
if $ensure == 'present' {
- @@bacula::storage_per_node { $::fqdn: }
+ @@bacula::storage::client { $::fqdn:
+ tag => "bacula::to-storage::${storage_server}"
+ }
@@bacula::node { $::fqdn:
port_fd => $port_fd,