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
c317bf93
Commit
c317bf93
authored
Apr 07, 2016
by
Clinton Blackburn
Committed by
Ibrahim
Oct 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing discovery for sandboxes
ECOM-3877
parent
e391baab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletions
+20
-1
playbooks/edx-east/edx_continuous_integration.yml
+1
-0
playbooks/roles/discovery/defaults/main.yml
+5
-0
playbooks/roles/discovery/tasks/main.yml
+10
-0
util/jenkins/ansible-provision.sh
+4
-1
No files found.
playbooks/edx-east/edx_continuous_integration.yml
View file @
c317bf93
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
-
analytics_api
-
analytics_api
-
ecommerce
-
ecommerce
-
credentials
-
credentials
-
discovery
-
oauth_client_setup
-
oauth_client_setup
-
role
:
datadog
-
role
:
datadog
when
:
COMMON_ENABLE_DATADOG
when
:
COMMON_ENABLE_DATADOG
...
...
playbooks/roles/discovery/defaults/main.yml
View file @
c317bf93
...
@@ -18,9 +18,14 @@ DISCOVERY_GIT_IDENTITY: !!null
...
@@ -18,9 +18,14 @@ DISCOVERY_GIT_IDENTITY: !!null
#
#
discovery_service_name
:
"
discovery"
discovery_service_name
:
"
discovery"
discovery_gunicorn_port
:
8381
discovery_gunicorn_port
:
8381
discovery_create_demo_data
:
false
# TODO Determine how to access edx_django_service_environment
discovery_code_dir
:
"
{{
discovery_home
}}/{{
discovery_service_name
}}"
discovery_environment
:
discovery_environment
:
DISCOVERY_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
discovery_service_name
}}.yml"
DISCOVERY_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
discovery_service_name
}}.yml"
DJANGO_SETTINGS_MODULE
:
'
{{
DISCOVERY_DJANGO_SETTINGS_MODULE
}}'
PATH
:
'
{{
discovery_home
}}/nodeenvs/{{
discovery_service_name
}}/bin:{{
discovery_home
}}/venvs/{{
discovery_service_name
}}/bin:{{
ansible_env.PATH
}}'
discovery_user
:
"
{{
discovery_service_name
}}"
discovery_user
:
"
{{
discovery_service_name
}}"
discovery_home
:
"
{{
COMMON_APP_DIR
}}/{{
discovery_service_name
}}"
discovery_home
:
"
{{
COMMON_APP_DIR
}}/{{
discovery_service_name
}}"
...
...
playbooks/roles/discovery/tasks/main.yml
View file @
c317bf93
...
@@ -20,3 +20,13 @@
...
@@ -20,3 +20,13 @@
# Example play:
# Example play:
#
#
#
#
-
name
:
Create demo data
shell
:
'
./manage.py
create_or_update_partner
--site-id
1
--site-domain
{{
DISCOVERY_URL_ROOT.split("://")[1]
}}
--code
edx
--name
edX
--courses-api-url
"{{
DISCOVERY_LMS_URL_ROOT
}}/api/courses/v1/"
--ecommerce-api-url
"{{
DISCOVERY_ECOMMERCE_URL_ROOT
}}/api/v2/"
--organizations-api-url
"{{
DISCOVERY_LMS_URL_ROOT
}}/api/organizations/v0/"
--oidc-url-root
"{{
DISCOVERY_LMS_URL_ROOT
}}/oauth2"
--oidc-key
{{
DISCOVERY_SOCIAL_AUTH_EDX_OIDC_KEY
}}
--oidc-secret
{{
DISCOVERY_SOCIAL_AUTH_EDX_OIDC_SECRET
}}'
args
:
chdir
:
"
{{
discovery_code_dir
}}"
become_user
:
"
{{
discovery_user
}}"
environment
:
"
{{
discovery_environment
}}"
when
:
discovery_create_demo_data
tags
:
-
install
util/jenkins/ansible-provision.sh
View file @
c317bf93
...
@@ -207,6 +207,7 @@ CREDENTIALS_VERSION: $credentials_version
...
@@ -207,6 +207,7 @@ CREDENTIALS_VERSION: $credentials_version
DISCOVERY_NGINX_PORT: 80
DISCOVERY_NGINX_PORT: 80
DISCOVERY_SSL_NGINX_PORT: 443
DISCOVERY_SSL_NGINX_PORT: 443
DISCOVERY_VERSION:
$discovery_version
DISCOVERY_VERSION:
$discovery_version
NGINX_SET_X_FORWARDED_HEADERS: True
NGINX_SET_X_FORWARDED_HEADERS: True
NGINX_REDIRECT_TO_HTTPS: True
NGINX_REDIRECT_TO_HTTPS: True
EDX_ANSIBLE_DUMP_VARS: true
EDX_ANSIBLE_DUMP_VARS: true
...
@@ -296,10 +297,12 @@ CREDENTIALS_LMS_URL_ROOT: "https://${deploy_host}"
...
@@ -296,10 +297,12 @@ CREDENTIALS_LMS_URL_ROOT: "https://${deploy_host}"
CREDENTIALS_DOMAIN: "credentials-
${
deploy_host
}
"
CREDENTIALS_DOMAIN: "credentials-
${
deploy_host
}
"
CREDENTIALS_URL_ROOT: "https://{{ CREDENTIALS_DOMAIN }}"
CREDENTIALS_URL_ROOT: "https://{{ CREDENTIALS_DOMAIN }}"
CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
COURSE_DISCOVERY_ECOMMERCE_API_URL: "https://ecommerce-
${
deploy_host
}
/api/v2"
discovery_create_demo_data: true
DISCOVERY_URL_ROOT: "https://discovery-
${
deploy_host
}
"
DISCOVERY_URL_ROOT: "https://discovery-
${
deploy_host
}
"
DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
DISCOVERY_ECOMMERCE_URL_ROOT: "https://ecommerce-
${
deploy_host
}
"
DISCOVERY_LMS_URL_ROOT: "https://
${
deploy_host
}
"
EOF
EOF
fi
fi
...
...
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