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
81598c38
Commit
81598c38
authored
Mar 21, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #881 from edx/cg/cas_attributes
Add options for installing and configuring a CAS attribute mapper
parents
034e7807
e68c2ece
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
playbooks/roles/edxapp/defaults/main.yml
+3
-0
playbooks/roles/edxapp/tasks/deploy.yml
+11
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
81598c38
...
...
@@ -65,6 +65,8 @@ EDXAPP_PLATFORM_NAME: 'edX'
EDXAPP_CAS_SERVER_URL
:
'
'
EDXAPP_CAS_EXTRA_LOGIN_PARAMS
:
'
'
EDXAPP_CAS_ATTRIBUTE_CALLBACK
:
'
'
EDXAPP_CAS_ATTRIBUTE_PACKAGE
:
'
'
EDXAPP_FEATURES
:
AUTH_USE_OPENID_PROVIDER
:
true
...
...
@@ -386,6 +388,7 @@ generic_env_config: &edxapp_generic_env
BULK_EMAIL_DEFAULT_FROM_EMAIL
:
$EDXAPP_BULK_EMAIL_DEFAULT_FROM_EMAIL
CAS_SERVER_URL
:
$EDXAPP_CAS_SERVER_URL
CAS_EXTRA_LOGIN_PARAMS
:
$EDXAPP_CAS_EXTRA_LOGIN_PARAMS
CAS_ATTRIBUTE_CALLBACK
:
$EDXAPP_CAS_ATTRIBUTE_CALLBACK
lms_auth_config
:
<<
:
*edxapp_generic_auth
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
81598c38
...
...
@@ -186,6 +186,17 @@
-
"
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
pip
:
>
name="{{ EDXAPP_CAS_ATTRIBUTE_PACKAGE }}"
virtualenv="{{edxapp_venv_dir}}"
state=present
extra_args="-i {{ edxapp_pypi_local_mirror }} --exists-action w --use-mirrors"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
EDXAPP_CAS_ATTRIBUTE_PACKAGE|length > 0
notify
:
"
restart
edxapp"
# Install the sandbox python modules into {{ edxapp_venv_dir }}
-
name
:
install sandbox requirements into regular venv
...
...
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