Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
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
Show 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:
repo_name: https://git.ik.bme.hu/circle/vmdriver.git
repo_revision: master
hypervisor: kvm
salt/fwdriver/configuration.sls
View file @
c86de92e
...
...
@@ -55,8 +55,9 @@ include:
- user: {{ pillar['fwdriver']['user'] }}
- group: {{ pillar['fwdriver']['user'] }}
{% if grains['osfinger'] == 'Ubuntu-16.04' %}
symlink_dhcpd:
{% if grains['osfinger'] == 'Ubuntu-16.04' %}
file.symlink:
- name: /etc/systemd/system/dhcpd.service
- target: /lib/systemd/system/isc-dhcp-server.service
...
...
@@ -68,7 +69,8 @@ symlink_dhcpd:
- require:
- file: symlink_dhcpd
{% elif grains['os'] == 'Debian' %}
{% elif grains['os'] == 'Debian' %}
symlink_dhcpd:
file.symlink:
- name: /etc/init.d/dhcpd
- target: /etc/init.d/isc-dhcp-server
...
...
@@ -78,14 +80,15 @@ symlink_dhcpd:
- require:
- file: symlink_dhcpd
{% elif grains['os_family'] != 'RedHat' %}
{% elif grains['os_family'] != 'RedHat' %}
symlink_dhcpd:
file.symlink:
- name: /etc/init.d/isc-dhcp-server
- target: /lib/init/upstart-job
- force: True
- require_in:
- service: isc-dhcp-server
{% endif %}
{% endif %}
/etc/sysctl.d/60-circle-firewall.conf:
file.managed:
...
...
salt/manager/init.sls
View file @
c86de92e
{% set amqp_islocal = (pillar['amqp']['host'] in ('localhost', '127.0.0.1')) %}
include:
- manager.pipeline
- manager.gitrepo
- manager.agentgit
- manager.postgres
{% if amqp_islocal %}
- manager.rabbitmq
{% endif %}
- manager.virtualenv
- manager.configuration
- manager.nginx
...
...
@@ -15,7 +19,9 @@ manager:
- git
- python-pip
- ntp
{% if amqp_islocal %}
- rabbitmq-server
{% endif %}
- memcached
- gettext
- wget
...
...
salt/network/init.sls
View file @
c86de92e
...
...
@@ -35,7 +35,7 @@ reload_firewall:
- user: {{ pillar['user'] }}
- require:
- service: firewall2
{% if grains['os'] == 'Debian' %}
{% if grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
- cmd: symlink_dhcpd
{% 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 CACHE_URI={{ pillar['cache'] }}
export LIBVIRT_URI=qemu:///system
export HYPERVISOR_TYPE=
kvm
export HYPERVISOR_TYPE=
{{ pillar['vmdriver']['hypervisor'] }}
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