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
6da9f55e
Commit
6da9f55e
authored
May 15, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74 from edx/jbau/fix/new-requirements-files
Jbau/fix/new requirements files
parents
94250149
a9e91437
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
11 deletions
+39
-11
playbooks/group_vars/all
+1
-0
playbooks/roles/gunicorn/templates/lms-preview.conf.j2
+2
-2
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 @
6da9f55e
...
...
@@ -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/gunicorn/templates/lms-preview.conf.j2
View file @
6da9f55e
...
...
@@ -18,10 +18,10 @@ env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=lms.envs.aws
env SERVICE_VARIANT="lms-preview"
chdir
${app_base_dir}/mitx
chdir
{{platform_code_dir}}
setuid www-data
exec ${venv_dir}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=
${app_base_dir}/mitx
lms.wsgi
exec ${venv_dir}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=
{{platform_code_dir}}
lms.wsgi
post-start script
while true
...
...
playbooks/roles/lms/tasks/main.yml
View file @
6da9f55e
...
...
@@ -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 @
6da9f55e
...
...
@@ -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