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