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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
2b725a5d
authored
Aug 12, 2015
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fwdriver: disable os firewall
parent
3413a430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
salt/fwdriver/init.sls
+10
-0
salt/vmdriver/libvirt.sls
+3
-3
No files found.
salt/fwdriver/init.sls
View file @
2b725a5d
...
...
@@ -3,6 +3,16 @@ include:
- fwdriver.virtualenv
- fwdriver.configuration
disable_os_firewall:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
- name: >
systemctl disable firewalld ;
systemctl stop firewalld
{% else %}
- name: ufw disable
{% endif %}
firewall:
pkg.installed:
- pkgs:
...
...
salt/vmdriver/libvirt.sls
View file @
2b725a5d
...
...
@@ -105,17 +105,17 @@ apparmor:
{% if pillar["deployment_mode"] == "multinode" %}
open_libvirt_ports:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
- name: >
firewall-cmd --complete-reload ;
firewall-cmd --permanent --zone=public --add-port=49152-49215/tcp ;
firewall-cmd --permanent --zone=public --add-port=16509/tcp ;
firewall-cmd --reload
{% else %}
{% else %}
- name: >
ufw allow 49152:49215/tcp ;
ufw allow 16509/tcp
{% endif %}
{% endif %}
{% endif %}
...
...
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