Commit b93e087e by Guba Sándor

first commit

parents
README
agentdriver:
repo_name: https://git.ik.bme.hu/circle/agentdriver.git
repo_revision: master
amqp:
user: cloud
password: password
host: localhost
port: 5672
vhost: circle
user: cloud
cache: pylibmc://127.0.0.1:11211/
base:
'*':
- amqp
- agentdriver
- common
/home/{{ pillar['user'] }}/.virtualenvs/agentdriver/bin/postactivate:
file.managed:
- source: salt://agentdriver/files/postactivate
- template: jinja
- user: {{ pillar['user'] }}
- mode: 700
/etc/incron.d/agentdriver:
file.managed:
- source: salt://agentdriver/files/agentdriver.incron
- template: jinja
- user: {{ pillar['user'] }}
/etc/init/agentdriver.conf:
file.copy:
- user: root
- group: root
- source: /home/{{ pillar['user'] }}/agentdriver/miscellaneous/agentdriver.conf
/var/lib/libvirt/serial:
file.directory:
- makedirs: True
/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['agentdriver']['repo_name'] }}
- rev: {{ pillar['agentdriver']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/agentdriver
- require:
- pkg: git
agentdriver:
pkg.installed:
- pkgs:
- virtualenvwrapper
- git
- python-pip
- ntp
- incron
- libmemcached-dev
- zlib1g-dev
service:
- running
include:
- agentdriver.gitrepo
- agentdriver.virtualenv
- agentdriver.configuration
virtualenv:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/agentdriver
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
base:
'*':
- vim
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