Commit 852d237f by Guba Sándor

added vncproxy module

parent b93e087e
vncproxy:
repo_name: https://git.ik.bme.hu/circle/vncproxy.git
repo_revision: master
/home/{{ pillar['user'] }}/.virtualenvs/vncproxy/bin/postactivate:
file.managed:
- source: salt://vncproxy/files/postactivate
- template: jinja
- user: {{ pillar['user'] }}
- mode: 700
/etc/init/vncproxy.conf:
file.copy:
- user: root
- group: root
- source: /home/{{ pillar['user'] }}/vncproxy/miscellaneous/vncproxy.conf
export PROXY_SECRET={{ pillar['proxy_secret'] }}
git:
pkg.installed
gitrepo:
git.latest:
- name: {{ pillar['vncproxy']['repo_name'] }}
- rev: {{ pillar['vncproxy']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/vncproxy
- require:
- pkg: git
include:
- vncproxy.configuration
- vncproxy.gitrepo
- vncproxy.virtualenv
vncproxy:
pkg.installed:
- pkgs:
- virtualenvwrapper
- git
- python-pip
- ntp
- wget
- libffi-dev
- libssl-dev
- require_in:
- sls: gitrepo
- sls: virtualenv
service:
- running
virtualenv:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/vncproxy
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements.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