Created
May 20, 2021 09:08
-
-
Save cmltaWt0/0e19538fc73153e43febd14df705d747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/playbooks/openedx_native.yml b/playbooks/openedx_native.yml | |
index 9d7a04793..a97839f27 100644 | |
--- a/playbooks/openedx_native.yml | |
+++ b/playbooks/openedx_native.yml | |
@@ -67,7 +67,7 @@ | |
ECOMMERCE_CORS_ALLOW_CREDENTIALS: true | |
# For the mfe role. | |
COMMON_ECOMMERCE_BASE_URL: '{{ ECOMMERCE_ECOMMERCE_URL_ROOT }}' | |
- COMMON_ENABLE_PAYMENT_MFE: true | |
+ ECOMMERCE_ENABLE_PAYMENT_MFE: true | |
roles: | |
- role: swapfile | |
SWAPFILE_SIZE: 4GB | |
diff --git a/playbooks/roles/ecommerce/defaults/main.yml b/playbooks/roles/ecommerce/defaults/main.yml | |
index 48a1fd8ac..d7974c79a 100644 | |
--- a/playbooks/roles/ecommerce/defaults/main.yml | |
+++ b/playbooks/roles/ecommerce/defaults/main.yml | |
@@ -284,6 +284,9 @@ ECOMMERCE_HERMES_ENABLED: "{{ COMMON_HERMES_ENABLED }}" | |
ECOMMERCE_DECRYPT_CONFIG_ENABLED: "{{ COMMON_DECRYPT_CONFIG_ENABLED }}" | |
ECOMMERCE_COPY_CONFIG_ENABLED: "{{ COMMON_COPY_CONFIG_ENABLED }}" | |
+# MFEs default settings | |
+ECOMMERCE_ENABLE_PAYMENT_MFE: false | |
+ | |
# | |
# vars are namespace with the module name. | |
# | |
@@ -352,8 +355,8 @@ ecommerce_post_migrate_commands: | |
--backend-service-client-secret={{ ECOMMERCE_BACKEND_SERVICE_EDX_OAUTH2_SECRET }} | |
--from-email staff@example.com | |
--discovery_api_url={{ ECOMMERCE_DISCOVERY_SERVICE_URL }}/api/v1/ | |
- {{ " --enable-microfrontend-for-basket-page=true" if COMMON_ENABLE_PAYMENT_MFE else "" }} | |
- {{ " --payment-microfrontend-url="~EDXAPP_LMS_BASE_SCHEME~"://"~MFE_BASE~"/payment" if COMMON_ENABLE_PAYMENT_MFE else "" }} | |
+ {{ " --enable-microfrontend-for-basket-page=true" if ECOMMERCE_ENABLE_PAYMENT_MFE else "" }} | |
+ {{ " --payment-microfrontend-url="~EDXAPP_LMS_BASE_SCHEME~"://"~MFE_BASE~"/payment" if ECOMMERCE_ENABLE_PAYMENT_MFE else "" }} | |
when: '{{ ecommerce_create_demo_data }}' | |
- command: './manage.py create_demo_data --partner=edX' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment