Commit 103be4ec by Guba Sándor

added storagedriver

parent 012f28b1
storagedriver:
repo_name: https://git.ik.bme.hu/circle/storagedriver.git
repo_revision: master
......@@ -2,5 +2,6 @@ base:
'*':
- amqp
- agentdriver
- storagedriver
- vncproxy
- common
/home/{{ pillar['user'] }}/.virtualenvs/storagedriver/bin/postactivate:
file.managed:
- source: salt://storagedriver/files/postactivate
- template: jinja
- user: {{ pillar['user'] }}
- mode: 700
/etc/init/storagecelery.conf:
file.copy:
- user: root
- group: root
- source: /home/{{ pillar['user'] }}/storagedriver/miscellaneous/storagecelery.conf
/etc/init/storage.conf:
file.copy:
- user: root
- group: root
- source: /home/{{ pillar['user'] }}/storagedriver/miscellaneous/storage.conf
/datastore:
file.directory:
- user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- mode: 755
/var/lib/libvirt/serial IN_CREATE setfacl -m u:{{ pillar['user'] }}:rw $@/$#
export AMQP_URI=amqp://{{ pillar['amqp']['user'] }}:{{ pillar['amqp']['password'] }}@{{ pillar['amqp']['host'] }}:{{ pillar['amqp']['port'] }}/{{ pillar['amqp']['vhost'] }}
export CACHE_URI={{ pillar['cache'] }}
git:
pkg.installed
gitrepo:
git.latest:
- name: {{ pillar['storagedriver']['repo_name'] }}
- rev: {{ pillar['storagedriver']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/storagedriver
- require:
- pkg: git
include:
- storagedriver.gitrepo
- storagedriver.virtualenv
- storagedriver.configuration
storagedriver:
pkg.installed:
- pkgs:
- virtualenvwrapper
- git
- python-pip
- python-dev
- libmemcached-dev
- ntp
- qemu-utils
- require_in:
- sls: gitrepo
- sls: virtualenv
storage:
service:
- running
virtualenv:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/storagedriver
- requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/production.txt
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