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
6c09bcfd
Commit
6c09bcfd
authored
Mar 24, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install private requirements
parent
14a09d0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
playbooks/roles/edxapp/defaults/main.yml
+7
-0
playbooks/roles/edxapp/tasks/deploy.yml
+20
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
6c09bcfd
...
...
@@ -161,7 +161,13 @@ EDXAPP_GIT_IDENTITY: !!null
EDXAPP_TEST_MIGRATE_DB_NAME
:
"
{{
COMMON_ENVIRONMENT
}}_{{
COMMON_DEPLOYMENT
}}_test_{{
EDXAPP_MYSQL_DB_NAME
}}"
EDXAPP_UPDATE_STATIC_FILES_KEY
:
false
# Set this to true if you want to install the private pip
# requirements in the edx-platform repo.
# This will use EDXAPP_GIT_IDENTITY, EDXAPP_USE_GIT_IDENTITY
# must be set to true if EDXAPP_INSTALL_PRIVATE_REQUIREMENTS is
# set to true
EDXAPP_INSTALL_PRIVATE_REQUIREMENTS
:
false
#-------- Everything below this line is internal to the role ------------
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
...
...
@@ -494,6 +500,7 @@ post_requirements_file: "{{ edxapp_code_dir }}/requirements/edx/post.txt"
base_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/base.txt"
github_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/github.txt"
repo_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/repo.txt"
private_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/edx-private.txt"
sandbox_base_requirements
:
"
{{
edxapp_code_dir
}}/requirements/edx-sandbox/base.txt"
sandbox_local_requirements
:
"
{{
edxapp_code_dir
}}/requirements/edx-sandbox/local.txt"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
6c09bcfd
...
...
@@ -186,6 +186,26 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Private requriements require a ssh key to install, use the same key as the private key for edx-platform
# If EDXAPP_INSTALL_PRIVATE_REQUIREMENTS is set to true EDXAPP_USE_GIT_IDENTITY must also be true
-
name
:
install python private requirements
# 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
:
>
{{ edxapp_venv_dir }}/bin/pip install -i {{ edxapp_pypi_local_mirror }} --exists-action w --use-mirrors -r {{ item }}
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
private_requirements_file
}}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
when
:
EDXAPP_INSTALL_PRIVATE_REQUIREMENTS
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