@@ -192,6 +194,26 @@ details about class deployment on Confdroid.com.
(recommended). Values changed will take immediate effect
at next puppet run. Services will be restarted where neccessary.
+
Mandatory Parameters
+
+
There are currently no mandatory parameters, i.e. the module will function
+right out of box as is.
+
+
Optional Parameters
+
+
$ne_manage_cmds : Whether to manage check command definitions
+dynamically through a define, i.e. from other Puppet modules or profiles.
+Defaults to true.
+
+
$ne_incl_fw : Whether to manage relevant firewall rules
+through this modules. Defaults to true.
+
+
$ne_include_selinux : Whether to manage selinux exception
+rules. Defaults to true.
+
+
+
Managing Check Commands
+
SELINUX
All files and directories are configured with correct selinux context. If
@@ -252,7 +274,7 @@ environments.
@@ -192,6 +194,26 @@ details about class deployment on Confdroid.com.
(recommended). Values changed will take immediate effect
at next puppet run. Services will be restarted where neccessary.
+
Mandatory Parameters
+
+
There are currently no mandatory parameters, i.e. the module will function
+right out of box as is.
+
+
Optional Parameters
+
+
$ne_manage_cmds : Whether to manage check command definitions
+dynamically through a define, i.e. from other Puppet modules or profiles.
+Defaults to true.
+
+
$ne_incl_fw : Whether to manage relevant firewall rules
+through this modules. Defaults to true.
+
+
$ne_include_selinux : Whether to manage selinux exception
+rules. Defaults to true.
+
+
+
Managing Check Commands
+
SELINUX
All files and directories are configured with correct selinux context. If
@@ -252,7 +274,7 @@ environments.
+ 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/.
# File 'manifests/params.pp', line 101
class cd_nrpe::params (
$pkg_ensure = 'latest',
+$ne_manage_cmds = true,
+
# user settings
$ne_user = 'nrpe',
$ne_user_comment = 'NRPE service user',
@@ -1014,6 +1043,9 @@ $ne_main_conf_erb = 'cd_nrpe/nrpe_cfg.erb'
$ne_nrpe_pid_file = "${ne_run_dir}/nrpe.pid"
$ne_nrpe_conf_file = '/etc/sysconfig/nrpe'
$ne_nrpe_conf_erb = 'cd_nrpe/nrpe_conf.erb'
+$ne_cmd_file = "${ne_main_conf_d_dir}/commands.cfg"
+$ne_cmd_head_erb = 'cd_nrpe/cmd_head.erb'
+$ne_cmd_rule_erb = 'cd_nrpe/cmd_rule.erb'
# includes must be last
@@ -1027,7 +1059,7 @@ $ne_nrpe_conf_erb = 'cd_nrpe/nrpe_conf.erb'
diff --git a/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html b/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
index 1259313..950e7c9 100644
--- a/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
+++ b/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
@@ -70,7 +70,8 @@
Summary
- manage firewall settings through cd_firewall or puppetlabs-firewall
+ Populate command definitions through external puppet rules, i.e.
+from other modules.
The path to the command scripts, usually
+where the nagis_plugins are
+located. If you use your own scripts, specify
+the custom location
+including the trailing slash