Commit df2bc6f1 by Czémán Arnold

network, fwdriver: open VXLAN port

parent 9d3676dc
......@@ -30,3 +30,6 @@ ADDRULE="python /home/{{ pillar['user'] }}/circle/circle/manage.py add_rule"
# NFS server ports
{{ open_ports(pillar['nfs_server_ports']) }}
# VXLAN port
{% set vxlan_port = (pillar["network"]["vxlan_port"], ) %}
{{ open_ports(vxlan_port) }}
{% if pillar["deployment_mode"] == "node" %}
{% set vxlan_port = pillar["network"]["vxlan_port"]["port"] %}
{% set vxlan_proto = pillar["network"]["vxlan_port"]["proto"] %}
open_vxlan_port:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
- name: >
firewall-cmd --complete-reload ;
firewall-cmd --permanent --zone=public --add-port={{ vxlan_port }}/{{ vxlan_proto }} ;
firewall-cmd --reload
{% else %}
- name: ufw allow {{ vxlan_port }}/{{ vxlan_proto }}
{% endif %}
{% endif %}
include:
- openvswitch
- network.configuration
ovs-bridge:
openvswitch_bridge.present:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment