Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
47638e8d
Commit
47638e8d
authored
9 years ago
by
Edward Zarecor
Committed by
edward
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various fixes
parent
031004ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
playbooks/roles/harstorage/defaults/main.yml
+4
-1
playbooks/roles/harstorage/tasks/main.yml
+23
-2
playbooks/roles/harstorage/templates/edx/etc/harstorage/production.ini.j2
+2
-2
No files found.
playbooks/roles/harstorage/defaults/main.yml
View file @
47638e8d
...
...
@@ -20,6 +20,7 @@ harstorage_user: '{{ harstorage_role_name }}'
harstorage_home
:
'
{{
COMMON_APP_DIR
}}/{{
harstorage_role_name
}}'
harstorage_code_dir
:
'
{{
harstorage_home
}}/{{
harstorage_role_name
}}'
harstorage_venv_dir
:
'
{{
harstorage_home
}}/venvs/{{
harstorage_role_name
}}'
harstorage_bin_dir
:
'
{{
harstorage_home
}}/bin'
harstorage_etc
:
'
/edx/etc/harstorage'
# Source Code
...
...
@@ -38,6 +39,8 @@ HARSTORAGE_REPOS:
harstorage_debian_pkgs
:
-
lib32stdc++6
harstorage_pagespeed_binary
:
"
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/harstorage/pagespeed_bin"
harstorage_python_pkgs
:
-
{
name
:
"
pylons"
,
version
:
"
1.0.2"
}
-
{
name
:
"
webob"
,
version
:
"
1.5.1"
}
...
...
@@ -46,7 +49,7 @@ harstorage_python_pkgs:
harstorage_redhat_pkgs
:
[]
harstorage_port
:
"
5000"
harstorage_host
:
"
127.0.0.1
"
harstorage_host
:
"
0.0.0.0
"
harstorage_version
:
"
1.0"
# mongo packages
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/harstorage/tasks/main.yml
View file @
47638e8d
...
...
@@ -50,14 +50,35 @@
-
install:app-requirements
with_items
:
harstorage_python_pkgs
-
name
:
create
harstorage config directory
-
name
:
create
directories
file
:
path
:
"
{{
harstorage_etc
}}"
path
:
"
{{
item
}}"
owner
:
"
{{
harstorage_user
}}"
group
:
"
{{
harstorage_user
}}"
state
:
directory
mode
:
0755
tags
:
-
install
-
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
template
:
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/harstorage/templates/edx/etc/harstorage/production.ini.j2
View file @
47638e8d
...
...
@@ -16,7 +16,7 @@ use = egg:harstorage
full_stack = true
static_files = true
temp_store = {{ COMMON_DATA_DIR }}/{{ harstorage_user }}
bin_store =
%(here)s
bin_store =
{{ harstorage_bin_dir }}
ps_enabled = true
static_version = {{ harstorage_version }}
...
...
@@ -28,7 +28,7 @@ mongo_db = {{ harstorage_role_name }}
mongo_auth = false
mongo_user = {{ mongo_admin_user }}
mongo_pswd = {{ mongo_admin_password }}
cache_dir =
%(here)s/data
cache_dir =
{{ COMMON_DATA_DIR }}/{{ harstorage_user }}
beaker.session.key = harstorage
beaker.session.secret = somesecret
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment