e6f8425829b9d3a092cc3bdc7dc0ed0275645d8c
[mirror/dsa-puppet.git] / modules / bacula / manifests / storage_per_node.pp
1 # bacula storage for node.  This is stored config by a client, collected on the storage
2 define bacula::storage_per_node() {
3   include bacula::storage
4
5   $bacula_filestor_device = $bacula::bacula_filestor_device
6   $bacula_filestor_name   = $bacula::bacula_filestor_name
7
8   $bacula_client_name   = "${name}-fd"
9   $client               = $name
10
11   file {
12     "/etc/bacula/storage-conf.d/${name}.conf":
13       content => template('bacula/storage-per-client.conf.erb'),
14       mode    => '0440',
15       group   => bacula,
16       notify  => Exec['bacula-sd restart-when-idle'],
17       ;
18     "${bacula::storage::backup_path}/${name}":
19       ensure => directory,
20       mode   => '0755',
21       owner  => bacula,
22       group  => bacula,
23       ;
24   }
25 }
26