Merge "Nova: Fix placement API service credentials"

This commit is contained in:
Zuul 2018-01-06 22:45:30 +00:00 committed by Gerrit Code Review
commit dc2038de97
2 changed files with 19 additions and 6 deletions

View File

@ -117,6 +117,25 @@ limitations under the License.
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.nova.placement "auth_url" | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.region_name -}}
{{- set .Values.conf.nova.placement "region_name" .Values.endpoints.identity.auth.placement.region_name | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.project_name -}}
{{- set .Values.conf.nova.placement "project_name" .Values.endpoints.identity.auth.placement.project_name | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.project_domain_name -}}
{{- set .Values.conf.nova.placement "project_domain_name" .Values.endpoints.identity.auth.placement.project_domain_name | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.user_domain_name -}}
{{- set .Values.conf.nova.placement "user_domain_name" .Values.endpoints.identity.auth.placement.user_domain_name | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.username -}}
{{- set .Values.conf.nova.placement "username" .Values.endpoints.identity.auth.placement.username | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.placement.password -}}
{{- set .Values.conf.nova.placement "password" .Values.endpoints.identity.auth.placement.password | quote | trunc 0 -}}
{{- end -}}
{{- if empty .Values.conf.nova.vnc.novncproxy_base_url -}}
{{- tuple "compute_novnc_proxy" "public" "novnc_proxy" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | set .Values.conf.nova.vnc "novncproxy_base_url" | quote | trunc 0 -}}
{{- end -}}

View File

@ -1036,14 +1036,8 @@ conf:
oslo_messaging_notifications:
driver: messagingv2
placement:
os_region_name: RegionOne
project_domain_name: default
project_name: service
auth_type: password
auth_version: v3
user_domain_name: default
username: placement
password: password
# Names of secrets used by bootstrap and environmental checks
secrets: