Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
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
d9b501ff
authored
Aug 16, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fw fix
parent
b226ba5c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
11 deletions
+25
-11
pillar/installer.sls
+1
-1
salt/fwdriver/configuration.sls
+3
-3
salt/fwdriver/init.sls
+7
-6
salt/fwdriver/virtualenv.sls
+14
-1
No files found.
pillar/installer.sls
View file @
d9b501ff
admin_pass:
'12345678'
admin_pass:
Dejo12Cuccos
admin_user: admin
amqp:
host: 127.0.0.1
...
...
salt/fwdriver/configuration.sls
View file @
d9b501ff
...
...
@@ -9,7 +9,7 @@ include:
- group: {{ pillar['fwdriver']['user'] }}
- mode: 700
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if
pillar['init_type'] == 'systemd' %}
/etc/systemd/system/firewall.service:
file.managed:
- user: root
...
...
@@ -55,7 +55,7 @@ include:
- user: {{ pillar['fwdriver']['user'] }}
- group: {{ pillar['fwdriver']['user'] }}
{% if
grains['os_family'] != 'RedHat' and grains['os'] != 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/init.d/isc-dhcp-server:
file.symlink:
- target: /lib/init/upstart-job
...
...
@@ -77,7 +77,7 @@ include:
- source: salt://fwdriver/files/sudoers
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
systemd-sysctl:
cmd.run:
- name: /bin/systemctl restart systemd-sysctl
...
...
salt/fwdriver/init.sls
View file @
d9b501ff
...
...
@@ -9,18 +9,18 @@ firewall:
{% if grains['os_family'] == 'RedHat' %}
- zlib-devel
- python-virtualenvwrapper
- python
-
devel
- python
3
devel
- libmemcached-devel
- python
2
-pip
- python
3
-pip
- dhcp
{% else %}
- zlib1g-dev
- virtualenvwrapper
- python-dev
- python
3
-dev
- libmemcached-dev
- openvswitch-switch
- python-pip
{% if grains['os'] != 'Debian' %}
- python
3
-pip
{% if grains['os
_family
'] != 'Debian' %}
{# No such package in Debian Jessie! #}
- openvswitch-controller
{% endif %}
...
...
@@ -39,7 +39,8 @@ firewall:
user:
- present
- name: {{ pillar['fwdriver']['user'] }}
- gid_from_name: True
- shell: /bin/bash
- usergroup: True
service:
- enabled
- require:
...
...
salt/fwdriver/virtualenv.sls
View file @
d9b501ff
virtualenv_fwdriver:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['fwdriver']['user'] }}/.virtualenvs/fw
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements.txt
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements
/{{ pillar['deployment_type'] }}
.txt
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
- require:
- git: gitrepo_fwdriver
- virtualenv: virtualenv_fwdriver_install_first
virtualenv_fwdriver_install_first:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['fwdriver']['user'] }}/.virtualenvs/fw
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements/install_first.txt
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
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