Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
85ebd927
authored
Jul 06, 2016
by
Czémán Arnold
Committed by
cloud
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network, fwdriver: open VXLAN port
parent
f27951e6
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 @
85ebd927
...
...
@@ -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 @
85ebd927
{% 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 @
85ebd927
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