Skip to content

Populate edxapp canvas-url in consul #3097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shaidar opened this issue Apr 9, 2025 · 0 comments
Open

Populate edxapp canvas-url in consul #3097

shaidar opened this issue Apr 9, 2025 · 0 comments
Labels
DevOps Infrastructure Tasks related to infrastructure needed to power other services Open edX product:residential

Comments

@shaidar
Copy link
Contributor

shaidar commented Apr 9, 2025

Description/Context

Appears that the edxapp/canvas-url value has been set manually in consul. We should add it in as a pulumi stack config that gets populated via consul.Keys

Additionally:

Populate consul keys in the EDXStacks that replace the keys in the mit_learn stacks.

# MITx Online doesn't have a CI environment. Remove this once that ceases to be true.
# TODO(TMM 2025-04-04): Remove this hack once there is a CI deployment of Learn
mitxonline_consul_opts = get_consul_provider(
stack_info,
consul_address=f"https://consul-mitxonline-{stack_info.env_suffix}.odl.mit.edu",
provider_name=f"consul-provider-mitxonline-{stack_info.env_suffix}",
)
consul.Keys(
"learn-api-domain-consul-key-for-mitxonline-openedx",
keys=[
consul.KeysKeyArgs(
path="edxapp/learn-api-domain",
delete=True,
value=mitlearn_api_domain,
)
],
opts=mitxonline_consul_opts,
)
# TODO(TMM 2025-04-04): Remove this hack once there is a CI deployment of Learn
# This condition was originally `if stack_info.env_suffix == "qa":`
# It's included here because QA is currently a non-k8s deployment.
if stack_info.env_suffix == "qa":
xpro_ci_consul_opts = get_consul_provider(
stack_info,
consul_address="https://consul-xpro-ci.odl.mit.edu",
provider_name="consul-provider-xpro-ci",
)
consul.Keys(
"learn-api-domain-consul-key-for-xpro-openedx-ci",
keys=[
consul.KeysKeyArgs(
path="edxapp/learn-api-domain",
delete=True,
value=mitlearn_api_domain,
)
],
opts=xpro_ci_consul_opts,
)

@shaidar shaidar added DevOps Infrastructure Tasks related to infrastructure needed to power other services Open edX product:residential labels Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevOps Infrastructure Tasks related to infrastructure needed to power other services Open edX product:residential
Projects
None yet
Development

No branches or pull requests

1 participant