diff --git a/doc/file.README.html b/doc/file.README.html index 96a3e6c..c9fa6bd 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -121,7 +121,7 @@
  • manage dynamic NRPE check command definitions

  • -

    manage iptables (optional). set ne_incl_fwto true. Specify a custom value to ne_nagios_source for the nagior server IP or range.

    +

    manage iptables (optional). set ne_incl_fwto true.

  • manage selinux rule exceptions (optional)

  • @@ -129,7 +129,7 @@
  • -

    Note: The value for the nagios_server variable is derived from a global paraneter set in Foreman (nagios_server), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”.

    +

    Note: The value for the nagios_server variable is derived from a global paraneter set in Foreman (nagios_server), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”. Same for nagios_source, the value for the firewall source.

    Repo Documentation

    diff --git a/doc/index.html b/doc/index.html index 893ce8e..12e5f19 100644 --- a/doc/index.html +++ b/doc/index.html @@ -121,7 +121,7 @@
  • manage dynamic NRPE check command definitions

  • -

    manage iptables (optional). set ne_incl_fwto true. Specify a custom value to ne_nagios_source for the nagior server IP or range.

    +

    manage iptables (optional). set ne_incl_fwto true.

  • manage selinux rule exceptions (optional)

  • @@ -129,7 +129,7 @@
  • -

    Note: The value for the nagios_server variable is derived from a global paraneter set in Foreman (nagios_server), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”.

    +

    Note: The value for the nagios_server variable is derived from a global paraneter set in Foreman (nagios_server), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”. Same for nagios_source, the value for the firewall source.

    Repo Documentation

    diff --git a/doc/puppet_classes/confdroid_nrpe_3A_3Afirewall_3A_3Aiptables.html b/doc/puppet_classes/confdroid_nrpe_3A_3Afirewall_3A_3Aiptables.html index de71645..d3a7446 100644 --- a/doc/puppet_classes/confdroid_nrpe_3A_3Afirewall_3A_3Aiptables.html +++ b/doc/puppet_classes/confdroid_nrpe_3A_3Afirewall_3A_3Aiptables.html @@ -120,7 +120,7 @@ class confdroid_nrpe::firewall::iptables ( ) inherits confdroid_nrpe::params { if $ne_incl_fw == true { firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}": - source => $ne_nagios_source, + source => $nagios_source, proto => 'tcp', dport => $ne_nrpe_port, jump => 'accept', diff --git a/doc/puppet_classes/confdroid_nrpe_3A_3Aparams.html b/doc/puppet_classes/confdroid_nrpe_3A_3Aparams.html index 9e58056..5a86f5f 100644 --- a/doc/puppet_classes/confdroid_nrpe_3A_3Aparams.html +++ b/doc/puppet_classes/confdroid_nrpe_3A_3Aparams.html @@ -741,24 +741,6 @@ inherited by all classes except defines. —

    Whether to manage command rules for NRPE checks, to allow dynamic check & command rules.

    -
    - - - -
  • - - ne_nagios_source - - - (String) - - - (defaults to: '0.0.0.0/0') - - - — -
    -

    the source address for the firewall rule. Adjust to your environment if needed. Default is ‘0.0.0.0/0’ to allow all sources, but it is recommended to specify the nagios server IP or subnet.

  • @@ -781,6 +763,9 @@ inherited by all classes except defines.
     
     
    +78
    +79
    +80
     81
     82
     83
    @@ -865,13 +850,10 @@ inherited by all classes except defines.
     162
     163
     164
    -165
    -166
    -167
    -168
    +165 -
    # File 'manifests/params.pp', line 81
    +        
    # File 'manifests/params.pp', line 78
     
     class confdroid_nrpe::params (
     
    @@ -918,7 +900,6 @@ class confdroid_nrpe::params (
     # firewall
       Boolean $ne_incl_fw                = true,
       String $ne_fw_order_no             = '50',
    -  String $ne_nagios_source           = '0.0.0.0/0',
     
     # selinux
       Boolean $ne_include_selinux        = true,
    @@ -930,6 +911,7 @@ class confdroid_nrpe::params (
       $os_name                  = $facts['os']['name']
       $os_release               = $facts['os']['release']['major']
       $nagios_server            = $facts['nagios_server']
    +  $nagios_source            = $facts['nagios_source']
     
     # service
       $ne_service                 = 'nrpe'