notify => Exec['bacula-director reload']
}
- Bacula::Director::Client <<| tag == "bacula::to-director::${::fqdn}" |>>
Bacula::Director::Client_from_storage<<| tag == "bacula::to-director::${::fqdn}" |>>
+ Bacula::Director::Client <<| tag == "bacula::to-director::${::fqdn}" |>>
package { 'bacula-console':
ensure => installed;
# bacula::director::client and it needs to match.
$pool_name = "${bacula::director::pool_name}-${client}"
- file { "/etc/bacula/conf.d/${client}.conf":
- content => template('bacula/director/dir-per-client.erb'),
- mode => '0440',
- group => bacula,
- notify => Exec['bacula-director reload']
+ if defined(File["/etc/bacula/conf.d/${client}_storage.conf"]) {
+ # this config is only valid if the pools defined in ${client}_storage exist.
+ file { "/etc/bacula/conf.d/${client}.conf":
+ content => template('bacula/director/dir-per-client.erb'),
+ mode => '0440',
+ group => bacula,
+ notify => Exec['bacula-director reload']
+ }
}
}