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
42ca1e86
Commit
42ca1e86
authored
May 15, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change requirements path
parent
94250149
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
9 deletions
+37
-9
playbooks/group_vars/all
+1
-0
playbooks/roles/lms/tasks/main.yml
+26
-9
playbooks/roles/lms/vars/main.yml
+10
-0
No files found.
playbooks/group_vars/all
View file @
42ca1e86
...
...
@@ -3,6 +3,7 @@ app_base_dir: /opt/wwc
log_base_dir: /mnt/logs
venv_dir: /opt/edx
platform_code_dir: $app_base_dir/edx-platform
os_name: ubuntu
# these pathes are relative to the playbook dir
# directory for secret settings (keys, etc)
...
...
playbooks/roles/lms/tasks/main.yml
View file @
42ca1e86
...
...
@@ -76,7 +76,7 @@
## Install the debian package requirements system-wide
-
name
:
store remote apt_repos list for ansible use
command
:
cat {{
platform_code_dir}}/apt-repos.txt
command
:
cat {{
apt_sources_file }}
register
:
apt_repos_list
tags
:
-
lms
...
...
@@ -103,7 +103,7 @@
-
install
-
name
:
store remote apt_packages list for ansible use
command
:
cat {{
platform_code_dir}}/apt-packages.txt
command
:
cat {{
apt_packages_file }}
register
:
apt_packages_list
tags
:
-
lms
...
...
@@ -118,25 +118,42 @@
-
cms
-
install
# Install the python requirements into $venv_dir
-
name
:
install python pre-requirements
pip
:
requirements="{{platform_code_dir}}/pre-requirements.txt" virtualenv="{{venv_dir}}" state=present
# Install the python modules into {{ venv_dir }}
-
name
:
install base python packages using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ base_requirements_file }}
tags
:
-
lms
-
cms
-
install
# Install the python post requirements into {{ venv_dir }}
-
name
:
install python post-requirements
pip
:
requirements="{{ post_requirements_file }}" virtualenv="{{venv_dir}}" state=present
tags
:
-
lms
-
cms
-
install
# Install the python modules into $venv_dir
-
name
:
install python packages using the shell
#pip: requirements="{{platform_code_dir}}/requirements.txt" virtualenv="{{venv_dir}}"
# Install the final python modules into {{ venv_dir }}
-
name
:
install python post-post requirements using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{platform_code_dir}} && {{venv_dir}}/bin/pip install --use-mirrors -r {{platform_code_dir}}/requirements.txt
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ item }}
with_items
:
-
{{
repo_requirements_file
}}
-
{{
github_requirements_file
}}
-
{{
local_requirements_file
}}
tags
:
-
lms
-
cms
-
install
# Creates LMS upstart file
-
include
:
../../gunicorn/tasks/upstart.yml service_variant=lms
playbooks/roles/lms/vars/main.yml
View file @
42ca1e86
...
...
@@ -4,6 +4,16 @@
lms_auth_config
:
{}
lms_env_config
:
{}
lms_source_repo
:
git@github.com:edx/edx-platform.git
apt_sources_file
:
"
{{
platform_code_dir
}}/requirements/system/{{os_name}}/apt-repos.txt"
apt_packages_file
:
"
{{
platform_code_dir
}}/requirements/system/{{os_name}}/apt-packages.txt"
local_requirements_file
:
"
{{
platform_code_dir
}}/requirements/local.txt"
post_requirements_file
:
"
{{
platform_code_dir
}}/requirements/post.txt"
base_requirements_file
:
"
{{
platform_code_dir
}}/requirements/base.txt"
github_requirements_file
:
"
{{
platform_code_dir
}}/requirements/github.txt"
repo_requirements_file
:
"
{{
platform_code_dir
}}/requirements/repo.txt"
lms_debian_pkgs
:
-
apparmor-utils
-
aspell
...
...
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