Commit ef774969 by Bach Dániel

replace runas

parent 3984e652
......@@ -2,5 +2,5 @@ virtualenv_agentdriver:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/agentdriver
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
......@@ -2,5 +2,5 @@ virtualenv_fwdriver:
virtualenv.managed:
- name: /home/{{ pillar['fwdriver']['user'] }}/.virtualenvs/fw
- requirements: /home/{{ pillar['fwdriver']['user'] }}/fwdriver/requirements.txt
- runas: {{ pillar['fwdriver']['user'] }}
- user: {{ pillar['fwdriver']['user'] }}
- no_chown: true
......@@ -2,7 +2,7 @@ virtualenv_graphite:
virtualenv.managed:
- name: /home/{{ pillar['graphite']['user'] }}/.virtualenvs/graphite
- requirements: /home/{{ pillar['graphite']['user'] }}/requirements.txt
- runas: {{ pillar['graphite']['user'] }}
- user: {{ pillar['graphite']['user'] }}
- require:
- user: {{ pillar['graphite']['user'] }}
- file: /home/{{ pillar['graphite']['user'] }}/requirements.txt
......
......@@ -6,6 +6,6 @@ agentgit:
- name: {{ pillar['agent']['repo_name'] }}
- rev: {{ pillar['agent']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/agent/agent-linux
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- require:
- pkg: git
......@@ -6,6 +6,6 @@ gitrepo:
- name: {{ pillar['manager']['repo_name'] }}
- rev: {{ pillar['manager']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/circle
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- require:
- pkg: git
......@@ -31,7 +31,7 @@ dbuser:
postgres_user.present:
- name: {{ pillar['database']['user'] }}
- password: {{ pillar['database']['password'] }}
- runas: postgres
- user: postgres
- require:
- service: postgresql
......@@ -43,7 +43,7 @@ database:
- lc_collate: en_US.UTF8
- template: template0
- owner: {{ pillar['database']['user'] }}
- runas: postgres
- user: postgres
- require:
- service: postgresql
- postgres_user: dbuser
......@@ -17,7 +17,7 @@ virtualenv_manager:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- requirements: /home/{{ pillar['user'] }}/circle/requirements/{{ pillar['deployment_type'] }}.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/circle/
- no_chown: true
- require:
......
......@@ -2,5 +2,5 @@ virtualenv_monitor-client:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/monitor-client
- requirements: /home/{{ pillar['user'] }}/monitor-client/requirements.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
......@@ -9,8 +9,7 @@ nfs-server:
- name: nfs-kernel-server
/etc/exports:
file:
- append
file.managed:
- template: jinja
- sources:
- salt://storagedriver/files/exports.tmpl
......
......@@ -2,5 +2,5 @@ virtualenv_storagedriver:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/storagedriver
- requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/production.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
......@@ -2,7 +2,7 @@ virtualenv_vmdriver:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/vmdriver
- requirements: /home/{{ pillar['user'] }}/vmdriver/requirements/production.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
{% set libvirt_dir = "/usr/lib64/python2.7/site-packages/" if grains['os_family'] == 'RedHat' else "/usr/lib/python2.7/dist-packages/" %}
......
......@@ -2,5 +2,5 @@ virtualenv_vncproxy:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/vncproxy
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements.txt
- runas: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- no_chown: true
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