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
Commit
c86de92e
authored
Jul 27, 2016
by
Desztics Armand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed symlinks, rabbitmq install, added hypervisortype to pillar
parent
7a927e92
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
6 deletions
+17
-6
pillar/vmdriver.sls
+2
-0
salt/fwdriver/configuration.sls
+7
-4
salt/manager/init.sls
+6
-0
salt/network/init.sls
+1
-1
salt/vmdriver/files/postactivate
+1
-1
No files found.
pillar/vmdriver.sls
View file @
c86de92e
vmdriver:
vmdriver:
repo_name: https://git.ik.bme.hu/circle/vmdriver.git
repo_name: https://git.ik.bme.hu/circle/vmdriver.git
repo_revision: master
repo_revision: master
hypervisor: kvm
salt/fwdriver/configuration.sls
View file @
c86de92e
...
@@ -55,8 +55,9 @@ include:
...
@@ -55,8 +55,9 @@ include:
- user: {{ pillar['fwdriver']['user'] }}
- user: {{ pillar['fwdriver']['user'] }}
- group: {{ pillar['fwdriver']['user'] }}
- group: {{ pillar['fwdriver']['user'] }}
{% if grains['osfinger'] == 'Ubuntu-16.04' %}
symlink_dhcpd:
symlink_dhcpd:
{% if grains['osfinger'] == 'Ubuntu-16.04' %}
file.symlink:
file.symlink:
- name: /etc/systemd/system/dhcpd.service
- name: /etc/systemd/system/dhcpd.service
- target: /lib/systemd/system/isc-dhcp-server.service
- target: /lib/systemd/system/isc-dhcp-server.service
...
@@ -68,7 +69,8 @@ symlink_dhcpd:
...
@@ -68,7 +69,8 @@ symlink_dhcpd:
- require:
- require:
- file: symlink_dhcpd
- file: symlink_dhcpd
{% elif grains['os'] == 'Debian' %}
{% elif grains['os'] == 'Debian' %}
symlink_dhcpd:
file.symlink:
file.symlink:
- name: /etc/init.d/dhcpd
- name: /etc/init.d/dhcpd
- target: /etc/init.d/isc-dhcp-server
- target: /etc/init.d/isc-dhcp-server
...
@@ -78,14 +80,15 @@ symlink_dhcpd:
...
@@ -78,14 +80,15 @@ symlink_dhcpd:
- require:
- require:
- file: symlink_dhcpd
- file: symlink_dhcpd
{% elif grains['os_family'] != 'RedHat' %}
{% elif grains['os_family'] != 'RedHat' %}
symlink_dhcpd:
file.symlink:
file.symlink:
- name: /etc/init.d/isc-dhcp-server
- name: /etc/init.d/isc-dhcp-server
- target: /lib/init/upstart-job
- target: /lib/init/upstart-job
- force: True
- force: True
- require_in:
- require_in:
- service: isc-dhcp-server
- service: isc-dhcp-server
{% endif %}
{% endif %}
/etc/sysctl.d/60-circle-firewall.conf:
/etc/sysctl.d/60-circle-firewall.conf:
file.managed:
file.managed:
...
...
salt/manager/init.sls
View file @
c86de92e
{% set amqp_islocal = (pillar['amqp']['host'] in ('localhost', '127.0.0.1')) %}
include:
include:
- manager.pipeline
- manager.pipeline
- manager.gitrepo
- manager.gitrepo
- manager.agentgit
- manager.agentgit
- manager.postgres
- manager.postgres
{% if amqp_islocal %}
- manager.rabbitmq
- manager.rabbitmq
{% endif %}
- manager.virtualenv
- manager.virtualenv
- manager.configuration
- manager.configuration
- manager.nginx
- manager.nginx
...
@@ -15,7 +19,9 @@ manager:
...
@@ -15,7 +19,9 @@ manager:
- git
- git
- python-pip
- python-pip
- ntp
- ntp
{% if amqp_islocal %}
- rabbitmq-server
- rabbitmq-server
{% endif %}
- memcached
- memcached
- gettext
- gettext
- wget
- wget
...
...
salt/network/init.sls
View file @
c86de92e
...
@@ -35,7 +35,7 @@ reload_firewall:
...
@@ -35,7 +35,7 @@ reload_firewall:
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- require:
- require:
- service: firewall2
- service: firewall2
{% if grains['os'] == 'Debian' %}
{% if grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
- cmd: symlink_dhcpd
- cmd: symlink_dhcpd
{% endif %}
{% endif %}
...
...
salt/vmdriver/files/postactivate
View file @
c86de92e
export AMQP_URI=amqp://{{ pillar['amqp']['user'] }}:{{ pillar['amqp']['password'] }}@{{ pillar['amqp']['host'] }}:{{ pillar['amqp']['port'] }}/{{ pillar['amqp']['vhost'] }}
export AMQP_URI=amqp://{{ pillar['amqp']['user'] }}:{{ pillar['amqp']['password'] }}@{{ pillar['amqp']['host'] }}:{{ pillar['amqp']['port'] }}/{{ pillar['amqp']['vhost'] }}
export CACHE_URI={{ pillar['cache'] }}
export CACHE_URI={{ pillar['cache'] }}
export LIBVIRT_URI=qemu:///system
export LIBVIRT_URI=qemu:///system
export HYPERVISOR_TYPE=
kvm
export HYPERVISOR_TYPE=
{{ pillar['vmdriver']['hypervisor'] }}
export NATIVE_OVS=True
export NATIVE_OVS=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