bacula: Added alert commands to tape device.

This commit is contained in:
Timo Mkinen 2013-05-12 22:55:31 +03:00
parent a53427e2d9
commit 29b5d1bd5c
2 changed files with 6 additions and 0 deletions

View file

@ -408,6 +408,10 @@ class bacula::storage($password = undef) {
define bacula::device($device, $media) {
include bacula::storage
require smart
package { "mtx":
ensure => installed,
}
file { "/etc/bacula/bacula-sd.d/${name}.conf":
ensure => present,

View file

@ -7,4 +7,6 @@ Device {
AlwaysOpen = no;
RemovableMedia = yes;
RandomAccess = no;
Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert | cat'"
Alert Command = "sh -c 'smartctl -H -l error %c'"
}