From: Tollef Fog Heen Date: Sat, 16 Jun 2012 10:13:17 +0000 (+0200) Subject: Add storage daemon class X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=fe7a41a78ac9ad4ea5029d94efa2d998557339db;hp=783987455c96185443a8365c4f21b79d75240124;p=mirror%2Fdsa-puppet.git Add storage daemon class --- diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp new file mode 100644 index 000000000..377ecbc22 --- /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; + } +}