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
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
admin_user: admin
amqp:
amqp:
host: 127.0.0.1
host: 127.0.0.1
...
...
salt/fwdriver/configuration.sls
View file @
d9b501ff
...
@@ -9,7 +9,7 @@ include:
...
@@ -9,7 +9,7 @@ include:
- group: {{ pillar['fwdriver']['user'] }}
- group: {{ pillar['fwdriver']['user'] }}
- mode: 700
- mode: 700
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if
pillar['init_type'] == 'systemd' %}
/etc/systemd/system/firewall.service:
/etc/systemd/system/firewall.service:
file.managed:
file.managed:
- user: root
- user: root
...
@@ -55,7 +55,7 @@ include:
...
@@ -55,7 +55,7 @@ include:
- user: {{ pillar['fwdriver']['user'] }}
- user: {{ pillar['fwdriver']['user'] }}
- group: {{ 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:
/etc/init.d/isc-dhcp-server:
file.symlink:
file.symlink:
- target: /lib/init/upstart-job
- target: /lib/init/upstart-job
...
@@ -77,7 +77,7 @@ include:
...
@@ -77,7 +77,7 @@ include:
- source: salt://fwdriver/files/sudoers
- source: salt://fwdriver/files/sudoers
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
systemd-sysctl:
systemd-sysctl:
cmd.run:
cmd.run:
- name: /bin/systemctl restart systemd-sysctl
- name: /bin/systemctl restart systemd-sysctl
...
...
salt/fwdriver/init.sls
View file @
d9b501ff
...
@@ -9,18 +9,18 @@ firewall:
...
@@ -9,18 +9,18 @@ firewall:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
- zlib-devel
- zlib-devel
- python-virtualenvwrapper
- python-virtualenvwrapper
- python
-
devel
- python
3
devel
- libmemcached-devel
- libmemcached-devel
- python
2
-pip
- python
3
-pip
- dhcp
- dhcp
{% else %}
{% else %}
- zlib1g-dev
- zlib1g-dev
- virtualenvwrapper
- virtualenvwrapper
- python-dev
- python
3
-dev
- libmemcached-dev
- libmemcached-dev
- openvswitch-switch
- openvswitch-switch
- python-pip
- python
3
-pip
{% if grains['os'] != 'Debian' %}
{% if grains['os
_family
'] != 'Debian' %}
{# No such package in Debian Jessie! #}
{# No such package in Debian Jessie! #}
- openvswitch-controller
- openvswitch-controller
{% endif %}
{% endif %}
...
@@ -39,7 +39,8 @@ firewall:
...
@@ -39,7 +39,8 @@ firewall:
user:
user:
- present
- present
- name: {{ pillar['fwdriver']['user'] }}
- name: {{ pillar['fwdriver']['user'] }}
- gid_from_name: True
- shell: /bin/bash
- usergroup: True
service:
service:
- enabled
- enabled
- require:
- require:
...
...
salt/fwdriver/virtualenv.sls
View file @
d9b501ff
virtualenv_fwdriver:
virtualenv_fwdriver:
virtualenv.managed:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['fwdriver']['user'] }}/.virtualenvs/fw
- 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'] }}
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
- 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