Replies: 1 comment 2 replies
-
|
Feel free to create a PR. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quick implementation of firewalld.
rename: roles/ansible-role-firewall to roles/fw_iptables
create role: roles/fw_firewalld
with two tasks in tasks/main.yml
new variable is needed in vars/system.yml
replace "role: ansible-role-firewall" with role: "fw_{{ firewall_type }}" in files:
./add_balancer.yml
./add_pgnode.yml
./balancers.yml
./config_pgcluster.yml
./consul.yml
./deploy_pgcluster.yml
./etcd_cluster.yml
in bash
for _file in $(ls *.yml); do sed -i 's/ansible-role-firewall/"fw_{{ firewall_type }}"/g' $_file; doneLast operation is to install correct firewall package in deploy_pgcluster.yml
replace tasks:
with tasks:
Beta Was this translation helpful? Give feedback.
All reactions