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
bea650f2
Commit
bea650f2
authored
Aug 31, 2017
by
Clinton Blackburn
Committed by
Clinton Blackburn
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creating site and demo data for ecommerce sandboxes
LEARNER-1473
parent
257db08b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
docker/build/ecommerce/ansible_overrides.yml
+6
-0
playbooks/edx_sandbox.yml
+1
-0
playbooks/roles/ecommerce/defaults/main.yml
+7
-0
util/jenkins/ansible-provision.sh
+3
-0
No files found.
docker/build/ecommerce/ansible_overrides.yml
View file @
bea650f2
...
...
@@ -21,5 +21,11 @@ ECOMMERCE_DJANGO_SETTINGS_MODULE: 'ecommerce.settings.devstack'
ECOMMERCE_GUNICORN_EXTRA
:
'
--reload'
ECOMMERCE_MEMCACHE
:
[
'
edx.devstack.memcached:11211'
]
ECOMMERCE_ECOMMERCE_URL_ROOT
:
'
http://localhost:18130'
ECOMMERCE_LMS_URL_ROOT
:
'
http://edx.devstack.lms:18000'
ECOMMERCE_DISCOVERY_SERVICE_URL
:
'
http://edx.devstack.discovery:18381'
edx_django_service_is_devstack
:
true
# NOTE: The creation of demo data requires database access,
# which we don't have when making new images.
ecommerce_create_demo_data
:
false
playbooks/edx_sandbox.yml
View file @
bea650f2
...
...
@@ -22,6 +22,7 @@
# Set to false if deployed behind another proxy/load balancer.
NGINX_SET_X_FORWARDED_HEADERS
:
True
DISCOVERY_URL_ROOT
:
'
http://localhost:{{
DISCOVERY_NGINX_PORT
}}'
ecommerce_create_demo_data
:
true
roles
:
-
role
:
swapfile
SWAPFILE_SIZE
:
4GB
...
...
playbooks/roles/ecommerce/defaults/main.yml
View file @
bea650f2
...
...
@@ -150,6 +150,7 @@ ECOMMERCE_BROKER_HOST: '{{ ansible_default_ipv4.address }}'
ECOMMERCE_BROKER_PORT
:
5672
ECOMMERCE_BROKER_URL
:
'
amqp://{{
ECOMMERCE_BROKER_USERNAME
}}:{{
ECOMMERCE_BROKER_PASSWORD
}}@{{
ECOMMERCE_BROKER_HOST
}}:{{
ECOMMERCE_BROKER_PORT
}}'
ECOMMERCE_DISCOVERY_SERVICE_URL
:
'
http://localhost:8008'
ECOMMERCE_ENTERPRISE_URL
:
'
{{
ECOMMERCE_LMS_URL_ROOT
}}'
ecommerce_service_config_overrides
:
...
...
@@ -201,6 +202,8 @@ ecommerce_gunicorn_port: "8130"
ecommerce_environment
:
ECOMMERCE_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
ecommerce_service_name
}}.yml"
ecommerce_create_demo_data
:
false
#
# OS packages
#
...
...
@@ -216,3 +219,7 @@ ecommerce_redhat_pkgs: []
ecommerce_post_migrate_commands
:
-
command
:
'
./manage.py
oscar_populate_countries
--initial-only'
when
:
true
-
command
:
'
./manage.py
create_or_update_site
--site-id=1
--site-domain={{
ECOMMERCE_ECOMMERCE_URL_ROOT.split("://")[1]
}}
--partner-code=edX
--partner-name="Open
edX"
--lms-url-root={{
ECOMMERCE_LMS_URL_ROOT
}}
--client-side-payment-processor=cybersource
--payment-processors=cybersource,paypal
--client-id={{
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_KEY
}}
--client-secret={{
ECOMMERCE_SOCIAL_AUTH_EDX_OIDC_SECRET
}}
--from-email
staff@example.com
--discovery_api_url={{
ECOMMERCE_DISCOVERY_SERVICE_URL
}}/api/v1/'
when
:
'
{{
ecommerce_create_demo_data
}}'
-
command
:
'
./manage.py
create_demo_data
--partner=edX'
when
:
'
{{
ecommerce_create_demo_data
}}'
util/jenkins/ansible-provision.sh
View file @
bea650f2
...
...
@@ -288,9 +288,12 @@ EDXAPP_ECOMMERCE_PUBLIC_URL_ROOT: "https://ecommerce-${deploy_host}"
EDXAPP_ECOMMERCE_API_URL: "https://ecommerce-
${
deploy_host
}
/api/v2"
EDXAPP_COURSE_CATALOG_API_URL: "https://catalog-
${
deploy_host
}
/api/v1"
# NOTE: This is the same as DISCOVERY_URL_ROOT below
ECOMMERCE_DISCOVERY_SERVICE_URL: "https://discovery-
${
deploy_host
}
"
ECOMMERCE_ECOMMERCE_URL_ROOT: "https://ecommerce-
${
deploy_host
}
"
ECOMMERCE_LMS_URL_ROOT: "https://
${
deploy_host
}
"
ECOMMERCE_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
ecommerce_create_demo_data: true
CREDENTIALS_LMS_URL_ROOT: "https://
${
deploy_host
}
"
CREDENTIALS_DOMAIN: "credentials-
${
deploy_host
}
"
...
...
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