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