Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df2bc6f1
authored
Jul 06, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network, fwdriver: open VXLAN port
parent
9d3676dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletions
+21
-1
salt/fwdriver/files/open_ports.sh
+3
-0
salt/network/configuration.sls
+17
-0
salt/network/init.sls
+1
-1
No files found.
salt/fwdriver/files/open_ports.sh
View file @
df2bc6f1
...
...
@@ -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
)
}}
salt/network/configuration.sls
0 → 100644
View file @
df2bc6f1
{% 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 %}
salt/network/init.sls
View file @
df2bc6f1
include:
- openvswitch
- network.configuration
ovs-bridge:
openvswitch_bridge.present:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment