2026-02-10 17:43:42 +01:00
|
|
|
## confdroid_nrpe::firewall::iptables.pp #
|
|
|
|
|
# Module name: confdroid_nrpe
|
|
|
|
|
# Author: 12ww1160 (12ww1160@ConfDroid.com)
|
2025-05-12 16:58:52 +02:00
|
|
|
|
|
|
|
|
# @summary manage firewall settings through puppetlabs-firewall
|
2017-07-28 16:49:02 +01:00
|
|
|
###############################################################################
|
2026-02-10 17:43:42 +01:00
|
|
|
class confdroid_nrpe::firewall::iptables (
|
2017-07-28 16:49:02 +01:00
|
|
|
|
2026-02-10 17:43:42 +01:00
|
|
|
) inherits confdroid_nrpe::params {
|
2017-07-28 16:49:02 +01:00
|
|
|
if $ne_incl_fw == true {
|
2026-02-13 17:00:13 +01:00
|
|
|
notify { "nagios_source is set to ${nagios_source}": }
|
2026-02-13 17:02:44 +01:00
|
|
|
notify { "nagios_server is set to ${nagios_server}": }
|
2026-02-13 16:55:26 +01:00
|
|
|
|
2017-07-28 18:10:06 +01:00
|
|
|
firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}":
|
2026-02-13 16:44:17 +01:00
|
|
|
source => $nagios_source,
|
2026-02-10 18:24:39 +01:00
|
|
|
proto => 'tcp',
|
|
|
|
|
dport => $ne_nrpe_port,
|
|
|
|
|
jump => 'accept',
|
2017-07-28 16:49:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|