From 91e3b74b0fa4961baae2bb0219017edf4d37b565 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 30 Jul 2017 21:21:12 +0100 Subject: [PATCH] added requirement for commands to require user first --- README.md | 2 +- manifests/commands/definition_rules.pp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e8d704..a44033c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ |Repo Name| version | Build Status| |---|---|---|---| -|`cd_nrpe`| 0.0.1.0 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nrpe)](https://jenkins.confdroid.com/job/cd_nrpe/)| +|`cd_nrpe`| 0.0.1.1 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nrpe)](https://jenkins.confdroid.com/job/cd_nrpe/)| ### Synopsis NRPE allows monitoring tools like NAGIOS or ICINGA to connect to clients for monitoring purposes. diff --git a/manifests/commands/definition_rules.pp b/manifests/commands/definition_rules.pp index a787677..a29461a 100644 --- a/manifests/commands/definition_rules.pp +++ b/manifests/commands/definition_rules.pp @@ -32,6 +32,8 @@ class cd_nrpe::commands::definition_rules ( if $ne_manage_cmds == true { + require cd_nrpe::main::user + # manage the commands.cfg file concat { $ne_cmd_file: