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
OpenEdx
configuration
Commits
18815cc8
Commit
18815cc8
authored
Apr 26, 2017
by
Kevin Falcone
Committed by
GitHub
Apr 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3771 from mitodl/blarghmatey/env_extra_updates
Added the option to split env_extras by app
parents
f7a8b074
8f7d9bcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
playbooks/roles/edxapp/defaults/main.yml
+3
-0
playbooks/roles/edxapp/templates/cms.env.json.j2
+1
-1
playbooks/roles/edxapp/templates/lms.env.json.j2
+2
-2
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
18815cc8
...
...
@@ -326,6 +326,8 @@ EDXAPP_FOOTER_ORGANIZATION_IMAGE: "images/logo.png"
EDXAPP_ENV_EXTRA
:
{}
EDXAPP_AUTH_EXTRA
:
{}
EDXAPP_LMS_ENV_EXTRA
:
"
{{
EDXAPP_ENV_EXTRA
}}"
EDXAPP_CMS_ENV_EXTRA
:
"
{{
EDXAPP_ENV_EXTRA
}}"
EDXAPP_LMS_AUTH_EXTRA
:
"
{{
EDXAPP_AUTH_EXTRA
}}"
EDXAPP_CMS_AUTH_EXTRA
:
"
{{
EDXAPP_AUTH_EXTRA
}}"
EDXAPP_ENABLE_MKTG_SITE
:
false
...
...
@@ -1125,6 +1127,7 @@ cms_auth_config:
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
PARSE_KEYS
:
"
{{
EDXAPP_PARSE_KEYS
}}"
cms_env_config
:
<<
:
*edxapp_generic_env
SITE_NAME
:
"
{{
EDXAPP_CMS_SITE_NAME
}}"
...
...
playbooks/roles/edxapp/templates/cms.env.json.j2
View file @
18815cc8
{% do cms_env_config.update(EDXAPP_ENV_EXTRA) %}
{% do cms_env_config.update(EDXAPP_
CMS_
ENV_EXTRA) %}
{% for key, value in cms_env_config.iteritems() -%}
{% if value == 'None' -%}
{% do cms_env_config.update({key: None }) %}
...
...
playbooks/roles/edxapp/templates/lms.env.json.j2
View file @
18815cc8
{% do lms_env_config.update(EDXAPP_ENV_EXTRA) %}
{% do lms_env_config.update(EDXAPP_
LMS_
ENV_EXTRA) %}
{% for key, value in lms_env_config.iteritems() -%}
{% if value == 'None' -%}
{% do lms_env_config.update({key: None }) %}
{% do lms_env_config.update({key: None }) %}
{%- endif %}
{%- endfor %}
{{ lms_env_config | to_nice_json }}
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