Move filestore device and media type name to the storage, part I
[mirror/dsa-puppet.git] / modules / bacula / manifests / storage / client.pp
1 # Bacula storage configuration for a client.
2 #
3 # This is stored config by a client and then collected on the storage
4 #
5 # @param client The name of the client (relevant for device names, media type names, etc.)
6 define bacula::storage::client(
7   String $client = $name
8 ) {
9   include bacula::storage
10
11   file {
12     "/etc/bacula/storage-conf.d/${client}.conf":
13       content => template('bacula/storage/sd-per-client.conf.erb'),
14       mode    => '0440',
15       group   => bacula,
16       notify  => Exec['bacula-sd restart-when-idle'],
17       ;
18     "${bacula::storage::backup_path}/${client}":
19       ensure => directory,
20       mode   => '0755',
21       owner  => bacula,
22       group  => bacula,
23       ;
24   }
25 }
26