Fix path to director configuration
[mirror/dsa-puppet.git] / modules / bacula / manifests / director.pp
1 class bacula::director inherits bacula {
2
3   package {
4     "bacula-director-pgsql": ensure => installed;
5     "bacula-common": ensure => installed;
6     "bacula-common-pgsql": ensure => installed;
7   }
8
9   service {
10     "bacula-director":
11       ensure => running,
12       enable => true,
13       hasstatus => true,
14       require => Package["bacula-director-pgsql"];
15   }
16   file {
17     "/etc/bacula/conf.d":
18       ensure  => directory,
19       mode => 755,
20       group => bacula,
21       notify  => Exec["bacula-director restart"]
22       ;
23     "/etc/bacula/bacula-dir.conf":
24       content => template("bacula/bacula-dir.conf.erb"),
25       mode => 440,
26       group => bacula,
27       require => Package["bacula-director-pgsql"],
28       notify  => Exec["bacula-director restart"]
29       ;
30   }
31
32   exec {
33     "bacula-director restart":
34       path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
35       refreshonly => true;
36   }
37 }