]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/bacula/manifests/storage.pp
be5eacc07d136beff67160ba56a23844fa938b0a
[dsa-puppet.git] / modules / bacula / manifests / storage.pp
1 class bacula::storage inherits bacula {
2
3   package {
4     "bacula-sd": ensure => installed;
5   }
6
7   service {
8     "bacula-sd":
9       ensure => running,
10       enable => true,
11       hasstatus => true,
12       require => Package["bacula-sd-pgsql"];
13   }
14   file {
15     "/etc/bacula/bacula-sd.conf":
16       content => template("bacula/bacula-sd.conf.erb"),
17       mode => 640,
18       group => bacula,
19       notify  => Exec["bacula-sd restart"]
20       ;
21   }
22
23   exec {
24     "bacula-sd restart":
25       path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
26       refreshonly => true;
27   }
28 }