X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector%2Fclient.pp;h=f021819f0fc5ee4a25f5dcc9f85c0494f5a1cfd1;hb=c46ff2155be94c3e1c3226879e13a8f31dbbac1b;hp=cbfd139841442370955adcb4b6acea850819c99c;hpb=825e27050780ecccd54fb81d9d8f0ce7a3395caf;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/director/client.pp b/modules/bacula/manifests/director/client.pp index cbfd13984..f021819f0 100644 --- a/modules/bacula/manifests/director/client.pp +++ b/modules/bacula/manifests/director/client.pp @@ -18,19 +18,18 @@ define bacula::director::client ( ) { include bacula::director - $bacula_ca_path = $bacula::bacula_ca_path - $bacula_ssl_client_cert = $bacula::bacula_ssl_client_cert - $bacula_ssl_client_key = $bacula::bacula_ssl_client_key - # we define this in both bacula::director::client_from_storage and # 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'] + } } }