Commit 48106f5a by Bach Dániel

fix permissions

parent 35011098
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
- source: salt://agentdriver/files/postactivate - source: salt://agentdriver/files/postactivate
- template: jinja - template: jinja
- user: {{ pillar['user'] }} - user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- mode: 700 - mode: 700
/etc/incron.d/agentdriver: /etc/incron.d/agentdriver:
......
...@@ -6,5 +6,7 @@ gitrepo_agentdriver: ...@@ -6,5 +6,7 @@ gitrepo_agentdriver:
- name: {{ pillar['agentdriver']['repo_name'] }} - name: {{ pillar['agentdriver']['repo_name'] }}
- rev: {{ pillar['agentdriver']['repo_revision'] }} - rev: {{ pillar['agentdriver']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/agentdriver - target: /home/{{ pillar['user'] }}/agentdriver
- user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- require: - require:
- pkg: git - pkg: git
...@@ -2,4 +2,5 @@ virtualenv_agentdriver: ...@@ -2,4 +2,5 @@ virtualenv_agentdriver:
virtualenv.managed: virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/agentdriver - name: /home/{{ pillar['user'] }}/.virtualenvs/agentdriver
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt - requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- runas: {{ pillar['user'] }}
- no_chown: true
...@@ -4,6 +4,7 @@ postactivate: ...@@ -4,6 +4,7 @@ postactivate:
- source: salt://graphite/files/postactivate - source: salt://graphite/files/postactivate
- template: jinja - template: jinja
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
- mode: 700 - mode: 700
requirements: requirements:
...@@ -33,6 +34,7 @@ requirements: ...@@ -33,6 +34,7 @@ requirements:
file.directory: file.directory:
- makedirs: True - makedirs: True
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
- require: - require:
- user: {{ pillar['graphite']['user'] }} - user: {{ pillar['graphite']['user'] }}
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
- source: salt://storagedriver/files/postactivate - source: salt://storagedriver/files/postactivate
- template: jinja - template: jinja
- user: {{ pillar['user'] }} - user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- mode: 700 - mode: 700
/etc/init/storagecelery.conf: /etc/init/storagecelery.conf:
......
...@@ -6,5 +6,7 @@ gitrepo_storagedriver: ...@@ -6,5 +6,7 @@ gitrepo_storagedriver:
- name: {{ pillar['storagedriver']['repo_name'] }} - name: {{ pillar['storagedriver']['repo_name'] }}
- rev: {{ pillar['storagedriver']['repo_revision'] }} - rev: {{ pillar['storagedriver']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/storagedriver - target: /home/{{ pillar['user'] }}/storagedriver
- user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- require: - require:
- pkg: git - pkg: git
...@@ -2,4 +2,5 @@ virtualenv_storagedriver: ...@@ -2,4 +2,5 @@ virtualenv_storagedriver:
virtualenv.managed: virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/storagedriver - name: /home/{{ pillar['user'] }}/.virtualenvs/storagedriver
- requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/production.txt - requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/production.txt
- runas: {{ pillar['user'] }}
- no_chown: true
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
- source: salt://vncproxy/files/postactivate - source: salt://vncproxy/files/postactivate
- template: jinja - template: jinja
- user: {{ pillar['user'] }} - user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- mode: 700 - mode: 700
/etc/init/vncproxy.conf: /etc/init/vncproxy.conf:
......
...@@ -6,5 +6,7 @@ gitrepo_vncproxy: ...@@ -6,5 +6,7 @@ gitrepo_vncproxy:
- name: {{ pillar['vncproxy']['repo_name'] }} - name: {{ pillar['vncproxy']['repo_name'] }}
- rev: {{ pillar['vncproxy']['repo_revision'] }} - rev: {{ pillar['vncproxy']['repo_revision'] }}
- target: /home/{{ pillar['user'] }}/vncproxy - target: /home/{{ pillar['user'] }}/vncproxy
- user: {{ pillar['user'] }}
- group: {{ pillar['user'] }}
- require: - require:
- pkg: git - pkg: git
...@@ -2,4 +2,5 @@ virtualenv_vncproxy: ...@@ -2,4 +2,5 @@ virtualenv_vncproxy:
virtualenv.managed: virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/vncproxy - name: /home/{{ pillar['user'] }}/.virtualenvs/vncproxy
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements.txt - requirements: /home/{{ pillar['user'] }}/vncproxy/requirements.txt
- runas: {{ 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