From 7a767e39dc3aa2742c69e008b42e091dff767ea8 Mon Sep 17 00:00:00 2001
From: Arne Teuke
Date: Sun, 30 Jul 2017 12:42:09 +0100
Subject: [PATCH 1/2] fixed typo, added including clause to definitions
---
README.md | 5 ++---
manifests/commands/definition_rules.pp | 2 +-
manifests/commands/definitions.pp | 9 ++++++---
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 3257254..ea45767 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,6 @@ NRPE allows monitoring tools like NAGIOS or ICINGA to connect to clients for mon
`cd_nrpe` is a fully parameterized Puppet module to automate NRPE installation and configuration.
-
### WARNING
`**__!!! Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and what would have been configured, hence previuos configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production!!! __**`
@@ -39,6 +38,7 @@ CONFIGURATION
* manage configuration files through parameters:
* nrpe.conf
* nrpe.cfg
+ * commands.cfg (optional)
* manage iptables (optionals )
SERVICE
@@ -74,11 +74,10 @@ See [more details about class deployment on Confdroid.com](https://confdroid.com
### Parameters
-The following parameters are editable via params.pp or through ENC (**__recommended__**). Values changed will take immediate effect at next puppet run. Services will be restarted where neccessary.
+The following parameters are editable via params.pp or through ENC (**__recommended__**). Values changed will take immediate effect at next puppet run. Services will be restarted where neccessary. If you want to override parameters, the [module must be specifically declared to hosts when using ENC](#through-foreman).
### Mandatory Parameters
-
There are currently no mandatory parameters, i.e. the module will function right out of box as is.
### Optional Parameters
diff --git a/manifests/commands/definition_rules.pp b/manifests/commands/definition_rules.pp
index c8767f5..108462b 100644
--- a/manifests/commands/definition_rules.pp
+++ b/manifests/commands/definition_rules.pp
@@ -20,7 +20,7 @@
# along with this program. If not, see .
# @summary manage command definitions via define and Puppet rules.
###############################################################################
-class cd_nrpe::commands::definitions (
+class cd_nrpe::commands::definition_rules (
) inherits cd_nrpe::params {
diff --git a/manifests/commands/definitions.pp b/manifests/commands/definitions.pp
index 0a0ba4e..0d5856c 100644
--- a/manifests/commands/definitions.pp
+++ b/manifests/commands/definitions.pp
@@ -38,10 +38,13 @@ $ne_cmd_argstring = undef,
$ne_cmd_file = $::cd_nrpe::params::ne_cmd_file
$ne_cmd_rule_erb = $::cd_nrpe::params::ne_cmd_rule_erb
+$ne_manage_cmds = $::cd_nrpe::params::ne_manage_cmds
+ if $ne_manage_cmds == true {
- concat::fragment { $name:
- target => $ne_cmd_file,
- content => template($ne_cmd_rule_erb),
+ concat::fragment { $name:
+ target => $ne_cmd_file,
+ content => template($ne_cmd_rule_erb),
+ }
}
}
From 501d59832c2f525e5880b35c433d46985d552544 Mon Sep 17 00:00:00 2001
From: Jenkins Server
Date: Sun, 30 Jul 2017 13:42:02 +0200
Subject: [PATCH 2/2] recommit for updates in build 41
---
CHANGELOG.md | 10 +
REPOSTRUCTURE.md | 3 +-
doc/_index.html | 4 +-
doc/file.README.html | 11 +-
doc/index.html | 11 +-
doc/puppet_class_list.html | 4 +-
doc/puppet_classes/cd_nrpe.html | 2 +-
...e_3A_3Acommands_3A_3Adefinition_rules.html | 217 ++++++++++++++++++
.../cd_nrpe_3A_3Afirewall_3A_3Aiptables.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Aconfig.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Adirs.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Afiles.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Ainstall.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Aservice.html | 2 +-
.../cd_nrpe_3A_3Amain_3A_3Auser.html | 2 +-
doc/puppet_classes/cd_nrpe_3A_3Aparams.html | 4 +-
...d_nrpe_3A_3Acommands_3A_3Adefinitions.html | 16 +-
doc/top-level-namespace.html | 2 +-
18 files changed, 269 insertions(+), 29 deletions(-)
create mode 100644 doc/puppet_classes/cd_nrpe_3A_3Acommands_3A_3Adefinition_rules.html
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a74e84c..aa666fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,16 @@ Changelog of Git Changelog.
@@ -192,7 +193,9 @@ details about class deployment on Confdroid.com.
The following parameters are editable via params.pp or through ENC
(recommended). Values changed will take immediate effect
-at next puppet run. Services will be restarted where neccessary.
@@ -192,7 +193,9 @@ details about class deployment on Confdroid.com.
The following parameters are editable via params.pp or through ENC
(recommended). Values changed will take immediate effect
-at next puppet run. Services will be restarted where neccessary.
+ manage command definitions via define and Puppet rules.
+
+
Overview
+
+
+
+
cd_nrpe::commands::definition_rules.pp
+Module name: cd_nrpe
+Author: Arne
+Teuke (arne_teuke@ConfDroid.com)
+
+
License:
+
+
This file is part of cd_nrpe.
+
+
cd_nrpe is used for providing automatic configuration of NRPE.
+ Copyright
+(C) 2016 ConfDroid (copyright@ConfDroid.com)
+ This program is free
+software: you can redistribute it and/or modify
+ it under the terms of the
+GNU General Public License as published by
+ the Free Software Foundation,
+either version 3 of the License, or
+ (at your option) any later version.
+
+
This program is distributed in the hope that it will be useful,
+ but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License
+for more details.
+
+
You should have received a copy of the GNU General Public License
+ along
+with this program. If not, see www.gnu.org/licenses/.