add fw and dirs control - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
16
manifests/firewall/iptables.pp
Normal file
16
manifests/firewall/iptables.pp
Normal file
@@ -0,0 +1,16 @@
|
||||
# prometheus_cd::firewall::iptables.pp
|
||||
# Module name: prometheus_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages the firewall rules for the prometheus_cd module.
|
||||
##############################################################################
|
||||
class prometheus_cd::firewall::iptables (
|
||||
) inherits prometheus_cd::params {
|
||||
if ($ps_prom_host == $fqdn) and ($ps_manage_fw == true) {
|
||||
# main port
|
||||
firewall { "${ps_fw_prefix}${$ps_main_port} main port":
|
||||
proto => 'tcp',
|
||||
dport => $ps_main_port,
|
||||
jump => 'accept',
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user