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
86683431
Commit
86683431
authored
Nov 07, 2014
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1035 from mtyaka/extra-requirements
Add ability to specify custom python requirements.
parents
64fea5a5
4051f9a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
playbooks/roles/edxapp/defaults/main.yml
+11
-0
playbooks/roles/edxapp/tasks/deploy.yml
+14
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
86683431
...
...
@@ -254,6 +254,17 @@ EDXAPP_UPDATE_STATIC_FILES_KEY: false
EDXAPP_INSTALL_PRIVATE_REQUIREMENTS
:
false
# List of additional python packages that should be installed into the
# edxapp virtual environment.
# `name` (required), `version` (optional), and `extra_args` (optional)
# are supported and correspond to the options of ansible's pip module.
# Example:
# EDXAPP_EXTRA_REQUIREMENTS:
# - name: mypackage
# version: 1.0.1
# - name: git+https://git.myproject.org/MyProject#egg=MyProject
EDXAPP_EXTRA_REQUIREMENTS
:
[]
EDXAPP_GOOGLE_ANALYTICS_ACCOUNT
:
"
None"
EDXAPP_PEARSON_TEST_PASSWORD
:
"
"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
86683431
...
...
@@ -252,6 +252,20 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Install any custom extra requirements if defined in EDXAPP_EXTRA_REQUIREMENTS.
-
name
:
install python extra requirements
pip
:
>
name="{{ item.name }}"
{% if 'version' in item %}version="{{ item.version }}"{% endif %}
extra_args="--exists-action w --use-mirrors {{ item.extra_args|default('') }}"
virtualenv="{{ edxapp_venv_dir }}"
state=present
with_items
:
EDXAPP_EXTRA_REQUIREMENTS
sudo_user
:
"
{{
edxapp_user
}}"
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# If using CAS and you have a function for mapping attributes, install
# the module here. The next few tasks set up the python code sandbox
-
name
:
install CAS attribute module
...
...
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