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
OpenEdx
configuration
Commits
82efba13
Commit
82efba13
authored
Mar 24, 2016
by
Bilal
Committed by
Bilal
Apr 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete and operationalize harstorage role (OPS-1372)
parent
2ba54d9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
5 deletions
+59
-5
playbooks/edx-east/harstorage.yml
+7
-0
playbooks/roles/harstorage/defaults/main.yml
+14
-4
playbooks/roles/harstorage/tasks/main.yml
+38
-1
No files found.
playbooks/edx-east/harstorage.yml
0 → 100644
View file @
82efba13
-
name
:
Deploy Harstorage
hosts
:
all
sudo
:
True
gather_facts
:
True
roles
:
-
mongo
-
harstorage
playbooks/roles/harstorage/defaults/main.yml
View file @
82efba13
...
...
@@ -18,12 +18,11 @@ harstorage_role_name: harstorage
harstorage_user
:
'
{{
harstorage_role_name
}}'
harstorage_home
:
'
{{
COMMON_APP_DIR
}}/{{
harstorage_role_name
}}'
harstorage_home
:
'
{{
COMMON_CFG_DIR
}}/{{
harstorage_role_name
}}'
harstorage_code_dir
:
'
{{
harstorage_home
}}/{{
harstorage_role_name
}}'
harstorage_venv_dir
:
'
{{
harstorage_home
}}/venvs/{{
harstorage_role_name
}}'
harstorage_etc
:
'
edx/etc/harstorage'
# Source Code
harstorage_code_dir
:
HARSTORAGE_REPOS
:
-
PROTOCOL
:
https
DOMAIN
:
github.com
...
...
@@ -36,6 +35,17 @@ HARSTORAGE_REPOS:
# OS packages
#
harstorage_debian_pkgs
:
[]
harstorage_debian_pkgs
:
-
lib32stdc++6
-
python
-
python-cairo
-
python-rsvg
-
python-setuptools
-
python-pastescript
harstorage_python_pkgs
:
-
{
name
:
"
pylons"
,
version
:
"
1.0"
}
-
{
name
:
"
webob"
,
version
:
"
0.9.8"
}
-
{
name
:
"
pymongo"
,
version
:
"
2.8"
}
harstorage_redhat_pkgs
:
[]
playbooks/roles/harstorage/tasks/main.yml
View file @
82efba13
...
...
@@ -21,13 +21,50 @@
#
#
-
name
:
install debian dependecies
apt
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
harstorage_debian_pkgs
-
name
:
download harstorage egg file]
get_url
:
url
:
http://harstorage.googlecode.com/files/harstorage-1.0-py2.7.egg
dest
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
-
name
:
build virtualenv
command
:
"
virtualenv
{{
harstorage_venv_dir
}}"
args
:
creates
:
"
{{
harstorage_venv_dir
}}/bin/pip"
sudo_user
:
"
{{
harstorage_user
}}"
-
name
:
install python packages
pip
:
name
:
"
{{
item.name
}}"
state
:
present
version
:
"
{{
item.version
}}"
with_items
:
harstorage_python_pkgs
-
name
:
create harstorage directory
file
:
path
:
"
/{{
harstorage_etc
}}"
state
:
directory
mode
:
0755
-
name
:
setup the harstorage production.ini file
template
:
src
:
'
./{{
harstorage_etc
}}/production.ini.j2'
dest
:
'
{{
harstorage_etc
}}/production.ini'
dest
:
'
/
{{
harstorage_etc
}}/production.ini'
owner
:
'
{{
harstorage_user
}}'
group
:
'
{{
harstorage_user
}}'
mode
:
0644
-
name
:
install harstorage
easy_install
:
name
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
-
name
:
apply config
command
:
"
/usr/bin/paster
setup-app
/{{
harstorage_etc
}}/production.ini"
-
name
:
run harstorage
command
:
"
/usr/bin/paster
serve
/{{
harstorage_etc
}}/production.ini"
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