fixed typo, added including clause to definitions
This commit is contained in:
@@ -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.
|
`cd_nrpe` is a fully parameterized Puppet module to automate NRPE installation and configuration.
|
||||||
|
|
||||||
|
|
||||||
### WARNING
|
### 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!!! __**`
|
`**__!!! 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:
|
* manage configuration files through parameters:
|
||||||
* nrpe.conf
|
* nrpe.conf
|
||||||
* nrpe.cfg
|
* nrpe.cfg
|
||||||
|
* commands.cfg (optional)
|
||||||
* manage iptables (optionals )
|
* manage iptables (optionals )
|
||||||
|
|
||||||
SERVICE
|
SERVICE
|
||||||
@@ -74,11 +74,10 @@ See [more details about class deployment on Confdroid.com](https://confdroid.com
|
|||||||
|
|
||||||
|
|
||||||
### Parameters
|
### 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
|
### Mandatory Parameters
|
||||||
|
|
||||||
There are currently no mandatory parameters, i.e. the module will function right out of box as is.
|
There are currently no mandatory parameters, i.e. the module will function right out of box as is.
|
||||||
|
|
||||||
### Optional Parameters
|
### Optional Parameters
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# @summary manage command definitions via define and Puppet rules.
|
# @summary manage command definitions via define and Puppet rules.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class cd_nrpe::commands::definitions (
|
class cd_nrpe::commands::definition_rules (
|
||||||
|
|
||||||
) inherits cd_nrpe::params {
|
) inherits cd_nrpe::params {
|
||||||
|
|
||||||
|
|||||||
@@ -38,10 +38,13 @@ $ne_cmd_argstring = undef,
|
|||||||
|
|
||||||
$ne_cmd_file = $::cd_nrpe::params::ne_cmd_file
|
$ne_cmd_file = $::cd_nrpe::params::ne_cmd_file
|
||||||
$ne_cmd_rule_erb = $::cd_nrpe::params::ne_cmd_rule_erb
|
$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:
|
concat::fragment { $name:
|
||||||
target => $ne_cmd_file,
|
target => $ne_cmd_file,
|
||||||
content => template($ne_cmd_rule_erb),
|
content => template($ne_cmd_rule_erb),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user