# Bacula storage configuration for a client. # # This is stored config by a client and then collected on the storage # # @param client The name of the client (relevant for device names, media type names, etc.) define bacula::storage::client( String $client = $name ) { include bacula::storage $device_name = "${bacula::storage::filestor_device}-${client}" $media_type_name = "${bacula::storage::filestor_name}-${client}" $directory = "${bacula::storage::backup_path}/${client}" file { "/etc/bacula/storage-conf.d/${client}.conf": content => template('bacula/storage/sd-per-client.conf.erb'), mode => '0440', group => bacula, notify => Exec['bacula-sd restart-when-idle'], ; $directory: ensure => directory, mode => '0755', owner => bacula, group => bacula, ; } }