Commit 47638e8d by Edward Zarecor Committed by edward

Various fixes

parent 031004ee
...@@ -20,6 +20,7 @@ harstorage_user: '{{ harstorage_role_name }}' ...@@ -20,6 +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_bin_dir: '{{ harstorage_home }}/bin'
harstorage_etc: '/edx/etc/harstorage' harstorage_etc: '/edx/etc/harstorage'
# Source Code # Source Code
...@@ -38,6 +39,8 @@ HARSTORAGE_REPOS: ...@@ -38,6 +39,8 @@ HARSTORAGE_REPOS:
harstorage_debian_pkgs: harstorage_debian_pkgs:
- lib32stdc++6 - lib32stdc++6
harstorage_pagespeed_binary: "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/harstorage/pagespeed_bin"
harstorage_python_pkgs: harstorage_python_pkgs:
- { name: "pylons", version: "1.0.2"} - { name: "pylons", version: "1.0.2"}
- { name: "webob", version: "1.5.1"} - { name: "webob", version: "1.5.1"}
...@@ -46,7 +49,7 @@ harstorage_python_pkgs: ...@@ -46,7 +49,7 @@ harstorage_python_pkgs:
harstorage_redhat_pkgs: [] harstorage_redhat_pkgs: []
harstorage_port: "5000" harstorage_port: "5000"
harstorage_host: "127.0.0.1" harstorage_host: "0.0.0.0"
harstorage_version: "1.0" harstorage_version: "1.0"
# mongo packages # mongo packages
......
...@@ -50,14 +50,35 @@ ...@@ -50,14 +50,35 @@
- install:app-requirements - install:app-requirements
with_items: harstorage_python_pkgs with_items: harstorage_python_pkgs
- name: create harstorage config directory - name: create directories
file: file:
path: "{{ harstorage_etc }}" path: "{{ item }}"
owner: "{{ harstorage_user }}"
group: "{{ harstorage_user }}"
state: directory state: directory
mode: 0755 mode: 0755
tags: tags:
- install - install
- install:configuration - install:configuration
with_items:
- "{{ harstorage_etc }}"
- "{{ harstorage_bin_dir }}"
- name: ensure common web user can write to /edx/var/harstorage
file:
path: "{{ COMMON_DATA_DIR }}/{{ harstorage_user }}"
state: directory
mode: 0775
tags:
- install
- install:configuration
- name: download pagespeed
get_url:
url: "{{ harstorage_pagespeed_binary }}"
dest: "{{ harstorage_bin_dir }}"
mode: "0755"
owner: "{{ harstorage_user }}"
- name: setup the harstorage production.ini file - name: setup the harstorage production.ini file
template: template:
......
...@@ -16,7 +16,7 @@ use = egg:harstorage ...@@ -16,7 +16,7 @@ use = egg:harstorage
full_stack = true full_stack = true
static_files = true static_files = true
temp_store = {{ COMMON_DATA_DIR }}/{{ harstorage_user }} temp_store = {{ COMMON_DATA_DIR }}/{{ harstorage_user }}
bin_store = %(here)s bin_store = {{ harstorage_bin_dir }}
ps_enabled = true ps_enabled = true
static_version = {{ harstorage_version }} static_version = {{ harstorage_version }}
...@@ -28,7 +28,7 @@ mongo_db = {{ harstorage_role_name }} ...@@ -28,7 +28,7 @@ mongo_db = {{ harstorage_role_name }}
mongo_auth = false mongo_auth = false
mongo_user = {{ mongo_admin_user }} mongo_user = {{ mongo_admin_user }}
mongo_pswd = {{ mongo_admin_password }} mongo_pswd = {{ mongo_admin_password }}
cache_dir = %(here)s/data cache_dir = {{ COMMON_DATA_DIR }}/{{ harstorage_user }}
beaker.session.key = harstorage beaker.session.key = harstorage
beaker.session.secret = somesecret beaker.session.secret = somesecret
......
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