Bug 1320346
Summary: | Set oauthConfig.templates in installer | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Stefanie Forrester <dakini> |
Component: | Installer | Assignee: | Devan Goodwin <dgoodwin> |
Status: | CLOSED ERRATA | QA Contact: | Ma xiaoqiang <xiama> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.2.0 | CC: | agrimm, aos-bugs, bleanhar, dgoodwin, gpei, jdetiber, jokerman, mmccomas, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-ansible-3.0.74-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-12 16:39:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1303130 |
Description
Stefanie Forrester
2016-03-22 23:38:23 UTC
Jason could I get your feedback on this, there's already a oauth_template variable, but all it lets you set is the "login" template. I assume I can't just change that as it would impact real deployments. So I am thinking we add a new more freeform templates variable like (forgive me for just pluralizing it, I know it looks close, but it is technically different): openshift_oauth_templates: {"providerSelection": "provider-selection.html", "error": "oauth-error.html"} In the master config I propose we change the current: {% if 'oauth_template' in openshift.master %} templates: login: {{ openshift.master.oauth_template }} {% endif %} To make that a fallback and use the new templates variable instead: oauthConfig: {% if 'oauth_templates' in openshift.master %} templates:{{ openshift.master.oauth_templates | to_padded_yaml(level=2) }} {% else if 'oauth_template' in openshift.master %} templates: login: {{ openshift.master.oauth_template }} {% endif %} Then update all examples and comment the other one as deprecated. +1 on the approach Check openshift-ansilbe -b master Scenarios 1: Install env without templates parameters check the master config oauthConfig: assetPublicURL: https://openshift-115.lab.eng.nay.redhat.com:8443/console/ grantConfig: Get the expected result Scenarios 2: Install env with template parameters <--snip--> openshift_master_oauth_always_show_provider_selection=true openshift_master_oauth_template = {'providerSelection': 'provider-selection.html', 'error': 'oauth-error.html'} <--snip--> check the master config <--snip--> oauthConfig: alwaysShowProviderSelection: true templates: login: error: oauth-error.html providerSelection: provider-selection.html <--snip--> Get the expected result Scenarios 3: Install env with templates <--snip--> openshift_master_oauth_always_show_provider_selection=false openshift_master_oauth_template = {'providerSelection': 'provider-selection.html', 'error': 'oauth-error.html'} <--snip--> check the master config <--snip--> oauthConfig: alwaysShowProviderSelection: false templates: error: oauth-error.html providerSelection: provider-selection.html <--snip--> Get the expected result Scenarios 4: Install env with templates and template <--snip--> openshift_master_oauth_always_show_provider_selection=false openshift_master_oauth_templates = {'providerSelection': 'provider-selection.html', 'error': 'oauth-error.html'} openshift_master_oauth_template = {'test', 'test'} <--snip--> check the master config <--snip--> oauthConfig: alwaysShowProviderSelection: false templates: error: oauth-error.html providerSelection: provider-selection.html <--snip--> Check the result alwaysShowProviderSelection: false templates: error: oauth-error.html login: test: test <--snip--> Get the expected result. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1065 |