Commit 959dcc2e by Edward Zarecor

var updates

parent 66a1024f
...@@ -20,7 +20,7 @@ harstorage_user: '{{ harstorage_role_name }}' ...@@ -20,7 +20,7 @@ harstorage_user: '{{ harstorage_role_name }}'
harstorage_home: '{{ COMMON_APP_DIR }}/{{ harstorage_role_name }}' harstorage_home: '{{ COMMON_APP_DIR }}/{{ harstorage_role_name }}'
harstorage_code_dir: '{{ harstorage_home }}/{{ harstorage_role_name }}' harstorage_code_dir: '{{ harstorage_home }}/{{ harstorage_role_name }}'
harstorage_venv_dir: '{{ harstorage_home }}/venvs/{{ harstorage_role_name }}' harstorage_venv_dir: '{{ harstorage_home }}/venvs/{{ harstorage_role_name }}'
harstorage_etc: 'edx/etc/harstorage' harstorage_etc: '/edx/etc/harstorage'
# Source Code # Source Code
HARSTORAGE_REPOS: HARSTORAGE_REPOS:
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
- name: create harstorage config directory - name: create harstorage config directory
file: file:
path: "{{ harstorage_venv_dir }}/{{ harstorage_etc }}" path: "{{ harstorage_etc }}"
state: directory state: directory
mode: 0755 mode: 0755
tags: tags:
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
- name: setup the harstorage production.ini file - name: setup the harstorage production.ini file
template: template:
src: './{{ harstorage_etc }}/production.ini.j2' src: '.{{ harstorage_etc }}/production.ini.j2'
dest: '{{ harstorage_venv_dir }}/{{ harstorage_etc }}/production.ini' dest: '{{ harstorage_etc }}/production.ini'
owner: '{{ harstorage_user }}' owner: '{{ harstorage_user }}'
group: '{{ harstorage_user }}' group: '{{ harstorage_user }}'
mode: 0644 mode: 0644
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
- install:code - install:code
- name: apply config - name: apply config
command: "{{ harstorage_venv_dir }}/bin/paster setup-app {{ harstorage_venv_dir }}/{{ harstorage_etc }}/production.ini" command: "{{ harstorage_venv_dir }}/bin/paster setup-app {{ harstorage_etc }}/production.ini"
args: args:
chdir: "{{ harstorage_code_dir }}" chdir: "{{ harstorage_code_dir }}"
tags: tags:
......
...@@ -15,7 +15,7 @@ port = {{ harstorage_port }} ...@@ -15,7 +15,7 @@ port = {{ harstorage_port }}
use = egg:harstorage use = egg:harstorage
full_stack = true full_stack = true
static_files = true static_files = true
temp_store = %(here)s/data temp_store = {{ COMMON_DATA_DIR }}/{{ harstorage_user }}
bin_store = %(here)s bin_store = %(here)s
ps_enabled = true ps_enabled = true
static_version = {{ harstorage_version }} static_version = {{ harstorage_version }}
......
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 to comment