minor comments
[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
4         include bacula
5
6         $bacula_filestor_device = $bacula::bacula_filestor_device
7         $bacula_filestor_name   = $bacula::bacula_filestor_name
8         $bacula_backup_path     = $bacula::bacula_backup_path
9
10         $bacula_client_name   = "${name}-fd"
11         $client               = $name
12
13         file {
14                 "/etc/bacula/storage-conf.d/${name}.conf":
15                         content => template('bacula/storage-per-client.conf.erb'),
16                         mode    => '0440',
17                         group   => bacula,
18                         notify  => Exec['bacula-sd restart-when-idle'],
19                         ;
20                 "${bacula_backup_path}/${name}":
21                         ensure  => directory,
22                         mode    => '0755',
23                         owner   => bacula,
24                         group   => bacula,
25                         ;
26         }
27 }
28