Merge lp:~danilo/landscape-charm/openid-configuration into lp:~landscape/landscape-charm/trunk
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 241 |
Merged at revision: | 239 |
Proposed branch: | lp:~danilo/landscape-charm/openid-configuration |
Merge into: | lp:~landscape/landscape-charm/trunk |
Diff against target: |
245 lines (+96/-9) 9 files modified
config.yaml (+10/-0) hooks/lib/relations/landscape.py (+2/-0) hooks/lib/relations/tests/test_landscape.py (+6/-4) hooks/lib/services.py (+1/-0) hooks/lib/tests/sample.py (+5/-0) hooks/lib/tests/test_services.py (+33/-1) hooks/lib/tests/test_templates.py (+31/-2) templates/service.conf (+6/-0) tests/01-begin.py (+2/-2) |
To merge this branch: | bzr merge lp:~danilo/landscape-charm/openid-configuration |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | Approve | ||
Free Ekanayaka (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email: mp+254077@code.launchpad.net |
Commit message
Allow OpenID to be configured with the Landscape charm.
We introduce two options in the config.yaml that set appropriate openid-provider-url and openid-logout-url in service.conf [landscape] section (needed for our hosted deployments).
When they are not provided, OpenID is not configured.
Drive-by fix to make secret-token a required key as well in the landscape config.
Description of the change
Allow OpenID to be configured with the Landscape charm.
We introduce two options in the config.yaml that set appropriate openid-provider-url and openid-logout-url in service.conf [landscape] section (needed for our hosted deployments).
When they are not provided, OpenID is not configured.
Drive-by fix to make secret-token a required key as well in the landscape config.
To test, you can use juju-deployer with the following config:
https:/
Save it as landscape.yaml and run with
juju-deployer -vdW -w180 -c landscape.yaml landscape
Why do we need to use the leader context? The config is the same for all units.