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
dd147732
Commit
dd147732
authored
Jan 13, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default sites based on a new variable.
parent
122c05f8
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
46 additions
and
7 deletions
+46
-7
playbooks/edx-east/deploy_nginx_all_roles.yml
+2
-0
playbooks/edx-east/edx_continuous_integration.yml
+2
-0
playbooks/edx-east/edx_dev2.yml
+4
-0
playbooks/edx-east/edx_feanilsandbox.yml
+4
-0
playbooks/edx-east/edx_jenkins_tests.yml
+2
-0
playbooks/edx-east/edx_provision.yml
+3
-0
playbooks/edx-east/edx_vpc.yml
+6
-0
playbooks/edx-east/edxapp.yml
+4
-2
playbooks/edx_sandbox.yml
+3
-0
playbooks/roles/nginx/templates/cms.j2
+6
-2
playbooks/roles/nginx/templates/lms.j2
+7
-3
playbooks/vagrant-fullstack.yml
+3
-0
No files found.
playbooks/edx-east/deploy_nginx_all_roles.yml
View file @
dd147732
...
...
@@ -16,3 +16,5 @@
-
ora
-
xqueue
-
xserver
nginx_default_sites
:
-
lms
playbooks/edx-east/edx_continuous_integration.yml
View file @
dd147732
...
...
@@ -14,6 +14,8 @@
-
ora
-
xqueue
-
xserver
nginx_default_sites
:
-
lms
-
edxlocal
-
mongo
-
edxapp
...
...
playbooks/edx-east/edx_dev2.yml
View file @
dd147732
...
...
@@ -20,6 +20,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
EDXAPP_LMS_NGINX_PORT
:
80
EDXAPP_CMS_NGINX_PORT
:
80
...
...
@@ -38,6 +40,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
celery_worker
:
True
...
...
playbooks/edx-east/edx_feanilsandbox.yml
View file @
dd147732
...
...
@@ -12,6 +12,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
edx_platform_version
:
'
release'
...
...
@@ -29,6 +31,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
celery_worker
:
True
...
...
playbooks/edx-east/edx_jenkins_tests.yml
View file @
dd147732
...
...
@@ -22,6 +22,8 @@
-
xqueue
-
xserver
-
ora
nginx_default_sites
:
-
lms
-
edxlocal
-
mongo
-
edxapp
...
...
playbooks/edx-east/edx_provision.yml
View file @
dd147732
...
...
@@ -42,6 +42,9 @@
-
ora
-
xqueue
-
xserver
nginx_default_sites
:
-
lms
-
cms
# gh_users hash must be passed
# in as a -e variable
-
gh_users
...
...
playbooks/edx-east/edx_vpc.yml
View file @
dd147732
...
...
@@ -30,6 +30,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
migrate_db
:
'
{{
RUN_EDXAPP_MIGRATION
}}'
...
...
@@ -49,6 +51,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_site
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
-
splunkforwarder
...
...
@@ -65,6 +69,8 @@
-
lms
-
cms
-
lms-preview
nginx_default_site
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
celery_worker
:
True
...
...
playbooks/edx-east/edxapp.yml
View file @
dd147732
...
...
@@ -7,6 +7,8 @@
roles
:
-
role
:
nginx
nginx_sites
:
-
lms
-
cms
-
lms
-
cms
nginx_default_sites
:
-
lms
-
edxapp
playbooks/edx_sandbox.yml
View file @
dd147732
...
...
@@ -20,6 +20,9 @@
-
lms
-
ora
-
xqueue
nginx_default_sites
:
-
lms
-
cms
-
edxlocal
-
mongo
-
edxapp
...
...
playbooks/roles/nginx/templates/cms.j2
View file @
dd147732
{%- if "cms" in nginx_default_sites -%}
{%- set default_site = "default" -%}
{%- endif -%}
upstream cms-backend {
{% for host in nginx_cms_gunicorn_hosts %}
server {{ host }}:{{ edxapp_cms_gunicorn_port }} fail_timeout=0;
...
...
@@ -9,14 +13,14 @@ server {
{% if NGINX_ENABLE_SSL %}
listen {{EDXAPP_CMS_NGINX_PORT}};
listen {{EDXAPP_CMS_NGINX_PORT}}
{{default_site}}
;
listen {{EDXAPP_CMS_SSL_NGINX_PORT}} ssl;
ssl_certificate /etc/ssl/certs/{{ NGINX_SSL_CERTIFICATE|basename }};
ssl_certificate_key /etc/ssl/private/{{ NGINX_SSL_KEY|basename }};
{% else %}
listen {{EDXAPP_CMS_NGINX_PORT}}
default
;
listen {{EDXAPP_CMS_NGINX_PORT}}
{{default_site}}
;
{% endif %}
...
...
playbooks/roles/nginx/templates/lms.j2
View file @
dd147732
{%- if "cms" in nginx_default_sites -%}
{%- set default_site = "default" -%}
{%- endif -%}
upstream lms-backend {
{% for host in nginx_lms_gunicorn_hosts %}
server {{ host }}:{{ edxapp_lms_gunicorn_port }} fail_timeout=0;
...
...
@@ -9,14 +13,14 @@ server {
{% if NGINX_ENABLE_SSL %}
listen {{EDXAPP_LMS_NGINX_PORT}}
default
;
listen {{EDXAPP_LMS_SSL_NGINX_PORT}}
default
ssl;
listen {{EDXAPP_LMS_NGINX_PORT}}
{{default_site}}
;
listen {{EDXAPP_LMS_SSL_NGINX_PORT}}
{{default_site}}
ssl;
ssl_certificate /etc/ssl/certs/{{ NGINX_SSL_CERTIFICATE|basename }};
ssl_certificate_key /etc/ssl/private/{{ NGINX_SSL_KEY|basename }};
{% else %}
listen {{EDXAPP_LMS_NGINX_PORT}}
default
;
listen {{EDXAPP_LMS_NGINX_PORT}}
{{default_site}}
;
{% endif %}
access_log {{ nginx_log_dir }}/access.log;
...
...
playbooks/vagrant-fullstack.yml
View file @
dd147732
...
...
@@ -18,6 +18,9 @@
-
lms
-
ora
-
xqueue
nginx_default_sites
:
-
lms
-
cms
-
edxlocal
-
mongo
-
edxapp
...
...
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