Commit d9b501ff by Szeberényi Imre

fw fix

parent b226ba5c
admin_pass: '12345678'
admin_pass: Dejo12Cuccos
admin_user: admin
amqp:
host: 127.0.0.1
......
......@@ -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
......
......@@ -9,18 +9,18 @@ firewall:
{% if grains['os_family'] == 'RedHat' %}
- zlib-devel
- python-virtualenvwrapper
- python-devel
- python3devel
- libmemcached-devel
- python2-pip
- python3-pip
- dhcp
{% else %}
- zlib1g-dev
- virtualenvwrapper
- python-dev
- python3-dev
- libmemcached-dev
- openvswitch-switch
- python-pip
{% if grains['os'] != 'Debian' %}
- python3-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:
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment