diff options
author | Micah Anderson <micah@riseup.net> | 2009-12-07 17:07:05 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 17:07:05 -0500 |
commit | 0a5a15cf049225d51aecb670f89fd9b1d32637b0 (patch) | |
tree | 750e684803d29cc2c6437dece17868baef5fb492 /manifests | |
parent | 02f826e64e1532df82936edf33f8b9f4577cf9a2 (diff) | |
download | puppet-backupninja-0a5a15cf049225d51aecb670f89fd9b1d32637b0.tar.gz puppet-backupninja-0a5a15cf049225d51aecb670f89fd9b1d32637b0.tar.bz2 |
move if block up further to the place where the checkbackups script is installed
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index 5eb2e15..efc30ab 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -22,14 +22,14 @@ class backupninja::server { ensure => "directory", mode => 0710, owner => root, group => "backupninjas" } - - file { "/usr/local/bin/checkbackups": - ensure => "present", - source => "puppet://$servername/backupninja/checkbackups.pl", - mode => 0755, owner => root, group => root, - } if $nagios_server { + file { "/usr/local/bin/checkbackups": + ensure => "present", + source => "puppet://$servername/backupninja/checkbackups.pl", + mode => 0755, owner => root, group => root, + } + cron { checkbackups: command => "/usr/local/bin/checkbackups -d $real_backupdir | /usr/sbin/send_nsca -H $real_nagios_server -c /etc/send_nsca.cfg | grep -v 'sent to host successfully'", user => "root", |