Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #63 from jarrpa/vagrant-update
Browse files Browse the repository at this point in the history
vagrant: Make firewall changes permanent on nodes
  • Loading branch information
obnoxxx committed Dec 10, 2016
2 parents 5d13fdc + fe60447 commit 8f6bf6f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions vagrant/roles/nodes/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
- name: iptables key
command: iptables -N HEKETI
- name: Open port 24007 (GlusterFS daemon)
firewalld: port=24007/tcp zone=trusted permanent=true state=enabled immediate=true

- name: iptables 24007
command: iptables -A HEKETI -p tcp -m state --state NEW -m tcp --dport 24007 -j ACCEPT
- name: Open port 24008 (GlusterFS management)
firewalld: port=24008/tcp zone=trusted permanent=true state=enabled immediate=true

- name: iptables 24008
command: iptables -A HEKETI -p tcp -m state --state NEW -m tcp --dport 24008 -j ACCEPT
- name: Open port 2222 (GlusterFS sshd)
firewalld: port=2222/tcp zone=trusted permanent=true state=enabled immediate=true

- name: iptables 2222
command: iptables -A HEKETI -p tcp -m state --state NEW -m tcp --dport 2222 -j ACCEPT

- name: iptables 49152
command: iptables -A HEKETI -p tcp -m state --state NEW -m multiport --dports 49152:49251 -j ACCEPT
- name: Open ports 49152-49251 (GlusterFS bricks)
firewalld: port=49152-49251/tcp zone=trusted permanent=true state=enabled immediate=true

- name: Pull GlusterFS Docker image
command: docker pull gluster/gluster-centos:latest
Expand All @@ -24,6 +21,3 @@

- name: kubeadm join with master
command: kubeadm join --token={{ kubernetes_token }} {{ hostvars['master'].ansible_eth1.ipv4.address }}

#- name: save iptables
# command: service iptables save

0 comments on commit 8f6bf6f

Please sign in to comment.