Commit 01420cac by Clinton Blackburn Committed by Clinton Blackburn

Fixed programs sandbox configuration issues

- Creating DNS entry
- Specifying correct ports
- Enabling nginx site for CI builds
- Resolved nginx default site issues
- Fixed issue with OAuth client creation
- Setting LMS URL
- Corrected ecommerce repo

ECOM-2755
parent 3ca4e4c4
......@@ -17,6 +17,7 @@
- certs
- analytics_api
- ecommerce
- programs
nginx_default_sites:
- lms
- mysql
......
......@@ -7,5 +7,6 @@
- "roles/edxapp/defaults/main.yml"
- "roles/insights/defaults/main.yml"
- "roles/ecommerce/defaults/main.yml"
- "roles/programs/defaults/main.yml"
roles:
- oauth_client_setup
......@@ -36,8 +36,8 @@
{{ role_name|upper }}_LANGUAGE_CODE: 'en-us'
# Used to automatically configure OAuth2 Client
{{ role_name|upper }}_SOCIAL_AUTH_EDX_OIDC_KEY : 'some-secret'
{{ role_name|upper }}_SOCIAL_AUTH_EDX_OIDC_SECRET : 'some-secret'
{{ role_name|upper }}_SOCIAL_AUTH_EDX_OIDC_KEY : '{{ role_name|lower }}-key'
{{ role_name|upper }}_SOCIAL_AUTH_EDX_OIDC_SECRET : '{{ role_name|lower }}-secret'
{{ role_name|upper }}_SOCIAL_AUTH_REDIRECT_IS_HTTPS: false
{{ role_name|upper }}_PLATFORM_NAME: 'Your Platform Name Here'
......
......@@ -52,8 +52,8 @@ ECOMMERCE_JWT_ISSUERS:
- 'ecommerce_worker'
# Used to automatically configure OAuth2 Client
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_KEY : 'some-secret'
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_SECRET : 'some-secret'
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_KEY : 'ecommerce-key'
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_SECRET : 'ecommerce-secret'
ECOMMERCE_SOCIAL_AUTH_REDIRECT_IS_HTTPS: false
# Analytics related
......@@ -157,7 +157,7 @@ ECOMMERCE_REPOS:
- PROTOCOL: "{{ COMMON_GIT_PROTOCOL }}"
DOMAIN: "{{ COMMON_GIT_MIRROR }}"
PATH: "{{ COMMON_GIT_PATH }}"
REPO: edx-ecommerce.git
REPO: ecommerce.git
VERSION: "{{ ECOMMERCE_VERSION }}"
DESTINATION: "{{ ecommerce_code_dir }}"
SSH_KEY: "{{ ECOMMERCE_GIT_IDENTITY }}"
......
......@@ -78,7 +78,7 @@
value: "{{ item[0].public_dns_name }}"
with_nested:
- ec2.instances
- ['studio', 'ecommerce', 'preview']
- ['studio', 'ecommerce', 'preview', 'programs']
- name: Add new instance to host group
......
......@@ -30,7 +30,7 @@ oauth_client_setup_oauth2_clients:
secret: "{{ INSIGHTS_OAUTH2_SECRET }}"
}
- {
name: "{{ PROGRAMS_OAUTH2_APP_CLIENT_NAME | default('None') }}",
name: "{{ programs_service_name | default('None') }}",
url_root: "{{ PROGRAMS_URL_ROOT }}",
id: "{{ PROGRAMS_SOCIAL_AUTH_EDX_OIDC_KEY }}",
secret: "{{ PROGRAMS_SOCIAL_AUTH_EDX_OIDC_SECRET }}"
......
......@@ -43,8 +43,8 @@ PROGRAMS_TIME_ZONE: 'UTC'
PROGRAMS_LANGUAGE_CODE: 'en-us'
# Used to automatically configure OAuth2 Client
PROGRAMS_SOCIAL_AUTH_EDX_OIDC_KEY : 'some-secret'
PROGRAMS_SOCIAL_AUTH_EDX_OIDC_SECRET : 'some-secret'
PROGRAMS_SOCIAL_AUTH_EDX_OIDC_KEY : 'programs-key'
PROGRAMS_SOCIAL_AUTH_EDX_OIDC_SECRET : 'programs-secret'
PROGRAMS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: false
PROGRAMS_PLATFORM_NAME: 'Your Platform Name Here'
......
......@@ -155,14 +155,20 @@ ease_version: $ease_version
certs_version: $certs_version
discern_version: $discern_version
configuration_version: $configuration_version
ECOMMERCE_VERSION: $ecommerce_version
PROGRAMS_VERSION: $programs_version
EDXAPP_STATIC_URL_BASE: $static_url_base
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_LMS_PREVIEW_NGINX_PORT: 80
EDXAPP_CMS_NGINX_PORT: 80
ECOMMERCE_NGINX_PORT: 80
ECOMMERCE_SSL_NGINX_PORT: 443
ECOMMERCE_VERSION: $ecommerce_version
PROGRAMS_NGINX_PORT: 80
PROGRAMS_SSL_NGINX_PORT: 443
PROGRAMS_VERSION: $programs_version
NGINX_SET_X_FORWARDED_HEADERS: True
EDX_ANSIBLE_DUMP_VARS: true
migrate_db: "yes"
......@@ -172,6 +178,10 @@ rabbitmq_refresh: True
COMMON_HOSTNAME: $dns_name
COMMON_DEPLOYMENT: edx
COMMON_ENVIRONMENT: sandbox
nginx_default_sites:
- lms
# User provided extra vars
$extra_vars
EOF
......@@ -235,6 +245,7 @@ ECOMMERCE_ECOMMERCE_URL_ROOT: "https://ecommerce-${deploy_host}"
ECOMMERCE_LMS_URL_ROOT: "https://${deploy_host}"
ECOMMERCE_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
PROGRAMS_LMS_URL_ROOT: "https://${deploy_host}"
PROGRAMS_URL_ROOT: "https://programs-${deploy_host}"
PROGRAMS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment