From fe7a41a78ac9ad4ea5029d94efa2d998557339db Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 16 Jun 2012 12:13:17 +0200 Subject: [PATCH] Add storage daemon class --- modules/bacula/manifests/storage.pp | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/bacula/manifests/storage.pp diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp new file mode 100644 index 00000000..377ecbc2 --- /dev/null +++ b/modules/bacula/manifests/storage.pp @@ -0,0 +1,30 @@ +class bacula::storage inherits bacula { + + package { + "bacula-sd": ensure => installed; + "bacula-sd-pgsql": ensure => installed; + } + + service { + "bacula-sd": + ensure => running, + enable => true, + hasstatus => true, + require => Package["bacula-sd-pgsql"]; + } + file { + "/etc/bacula/bacula-sd.conf": + content => template("bacula/bacula-sd.conf.erb"), + mode => 640, + group => bacula, + require => Package["bacula-sd-pgsql"], + notify => Exec["bacula-sd restart"] + ; + } + + exec { + "bacula-sd restart": + path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", + refreshonly => true; + } +} -- 2.39.2