adds haproxy user

This commit is contained in:
Arne Teuke
2018-12-10 14:36:54 +01:00
parent f1ced15fee
commit 2f3afa420b
10 changed files with 194 additions and 40 deletions

View File

@@ -28,28 +28,16 @@ class cd_haproxy::firewall::iptables (
require cd_haproxy::main::files
if $hy_proxy_mode == 'http' {
firewall { "${hy_fw_order_no}80 tcp port 80":
proto => 'tcp',
dport => '80',
action => 'accept',
}
firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
proto => 'tcp',
dport => $hy_http_port,
action => 'accept',
}
if $hy_proxy_mode == 'tcp' {
firewall { "${hy_fw_order_no}${hy_fe_port} tcp port ${hy_fe_port}":
proto => 'tcp',
dport => $hy_fe_port,
action => 'accept',
}
firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
proto => 'tcp',
dport => $hy_https_port,
action => 'accept',
}
}
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::files
}
}