diff options
author | varac <varacanero@zeromail.org> | 2013-01-24 18:03:32 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-01-24 18:03:32 +0100 |
commit | 6535aaa54d141d7605af2a62af5b6b2796af751c (patch) | |
tree | 68868af4517d48b3197104ef1096d6dadc74f643 /manifests | |
parent | 9be6a4183f734bc83c0a40f806775143e9b89fa0 (diff) | |
download | puppet-backupninja-6535aaa54d141d7605af2a62af5b6b2796af751c.tar.gz puppet-backupninja-6535aaa54d141d7605af2a62af5b6b2796af751c.tar.bz2 |
sudo def for duplicity check
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/nagios_plugin/duplicity.pp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/nagios_plugin/duplicity.pp b/manifests/nagios_plugin/duplicity.pp index b88f64c..8be455b 100644 --- a/manifests/nagios_plugin/duplicity.pp +++ b/manifests/nagios_plugin/duplicity.pp @@ -22,7 +22,13 @@ class backupninja::nagios_plugin::duplicity { } nagios::nrpe::command { 'check_backupninja_duplicity': - command_line => "${::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity" + command_line => "sudo {::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity.py" + } + sudo::spec {'nrpe_check_backupninja_duplicity': + ensure => present, + users => 'nagios', + hosts => 'ALL', + commands => "sudo {::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity.py"; } nagios::service { "Backupninja Duplicity $::fqdn": @@ -34,4 +40,6 @@ class backupninja::nagios_plugin::duplicity { # recheck every hour retry_check_interval => '60', } + + } |