d342ac40cb
This PS updates the cephs config to deploy radosgw with greater swift compatibility. Allowing clients to use RGW as though it were a real swift deployment. Change-Id: Id0a27b42b7f9c0c9e4b5a197ef50feb612e6adfc
200 lines
12 KiB
YAML
200 lines
12 KiB
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
{{- $envAll := . }}
|
|
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.auth_uri -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.keystone_authtoken "auth_uri" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.keystone_authtoken "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.region_name -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "region_name" .Values.endpoints.identity.auth.ironic.region_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.project_name -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "project_name" .Values.endpoints.identity.auth.ironic.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "project_domain_name" .Values.endpoints.identity.auth.ironic.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "user_domain_name" .Values.endpoints.identity.auth.ironic.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.username -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "username" .Values.endpoints.identity.auth.ironic.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.password -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "password" .Values.endpoints.identity.auth.ironic.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.memcached_servers -}}
|
|
{{- tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | set .Values.conf.ironic.keystone_authtoken "memcached_servers" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.keystone_authtoken.memcache_secret_key -}}
|
|
{{- set .Values.conf.ironic.keystone_authtoken "memcache_secret_key" ( default ( randAlphaNum 64 ) .Values.endpoints.oslo_cache.auth.memcache_secret_key ) | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.database.connection -}}
|
|
{{- tuple "oslo_db" "internal" "ironic" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup"| set .Values.conf.ironic.database "connection" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.DEFAULT.transport_url -}}
|
|
{{- tuple "oslo_messaging" "internal" "ironic" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.ironic.DEFAULT "transport_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.glance.glance_host -}}
|
|
{{- tuple "image" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup"| set .Values.conf.ironic.glance "glance_host" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.glance_port -}}
|
|
{{- tuple "image" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup"| set .Values.conf.ironic.glance "glance_port" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.glance.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.glance "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.project_name -}}
|
|
{{- set .Values.conf.ironic.glance "project_name" .Values.endpoints.identity.auth.glance.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.glance "project_domain_name" .Values.endpoints.identity.auth.glance.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.glance "user_domain_name" .Values.endpoints.identity.auth.glance.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.username -}}
|
|
{{- set .Values.conf.ironic.glance "username" .Values.endpoints.identity.auth.glance.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.glance.password -}}
|
|
{{- set .Values.conf.ironic.glance "password" .Values.endpoints.identity.auth.glance.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
|
|
{{- if empty .Values.conf.ironic.inspector.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.inspector "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.inspector.project_name -}}
|
|
{{- set .Values.conf.ironic.inspector "project_name" .Values.endpoints.identity.auth.ironic.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.inspector.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.inspector "project_domain_name" .Values.endpoints.identity.auth.ironic.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.inspector.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.inspector "user_domain_name" .Values.endpoints.identity.auth.ironic.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.inspector.username -}}
|
|
{{- set .Values.conf.ironic.inspector "username" .Values.endpoints.identity.auth.ironic.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.inspector.password -}}
|
|
{{- set .Values.conf.ironic.inspector "password" .Values.endpoints.identity.auth.ironic.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
|
|
{{- if empty .Values.conf.ironic.neutron.url -}}
|
|
{{- tuple "network" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.neutron "url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.neutron "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.project_name -}}
|
|
{{- set .Values.conf.ironic.neutron "project_name" .Values.endpoints.identity.auth.ironic.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.neutron "project_domain_name" .Values.endpoints.identity.auth.ironic.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.neutron "user_domain_name" .Values.endpoints.identity.auth.ironic.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.username -}}
|
|
{{- set .Values.conf.ironic.neutron "username" .Values.endpoints.identity.auth.ironic.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.neutron.password -}}
|
|
{{- set .Values.conf.ironic.neutron "password" .Values.endpoints.identity.auth.ironic.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.service_catalog.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.service_catalog "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.service_catalog.project_name -}}
|
|
{{- set .Values.conf.ironic.service_catalog "project_name" .Values.endpoints.identity.auth.ironic.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.service_catalog.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.service_catalog "project_domain_name" .Values.endpoints.identity.auth.ironic.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.service_catalog.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.service_catalog "user_domain_name" .Values.endpoints.identity.auth.ironic.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.service_catalog.username -}}
|
|
{{- set .Values.conf.ironic.service_catalog "username" .Values.endpoints.identity.auth.ironic.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.service_catalog.password -}}
|
|
{{- set .Values.conf.ironic.service_catalog "password" .Values.endpoints.identity.auth.ironic.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.swift.auth_url -}}
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.swift "auth_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.swift.project_name -}}
|
|
{{- set .Values.conf.ironic.swift "project_name" .Values.endpoints.identity.auth.ironic.project_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.swift.project_domain_name -}}
|
|
{{- set .Values.conf.ironic.swift "project_domain_name" .Values.endpoints.identity.auth.ironic.project_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.swift.user_domain_name -}}
|
|
{{- set .Values.conf.ironic.swift "user_domain_name" .Values.endpoints.identity.auth.ironic.user_domain_name | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.swift.username -}}
|
|
{{- set .Values.conf.ironic.swift "username" .Values.endpoints.identity.auth.ironic.username | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.ironic.swift.password -}}
|
|
{{- set .Values.conf.ironic.swift "password" .Values.endpoints.identity.auth.ironic.password | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.conductor.api_url -}}
|
|
{{- tuple "baremetal" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.conductor "api_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.api.public_endpoint -}}
|
|
{{- tuple "baremetal" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.api "public_endpoint" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.glance.swift_endpoint_url -}}
|
|
{{- tuple "object_store" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| trimSuffix .Values.endpoints.object_store.path.default | set .Values.conf.ironic.glance "swift_endpoint_url" | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.glance.swift_temp_url_key -}}
|
|
{{- set .Values.conf.ironic.glance "swift_temp_url_key" .Values.endpoints.object_store.auth.glance.tmpurlkey | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ironic.api.port -}}
|
|
{{- set .Values.conf.ironic.api "port" (tuple "baremetal" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup") | quote | trunc 0 -}}
|
|
{{- end -}}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: ironic-etc
|
|
data:
|
|
ironic.conf: |
|
|
{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.ironic | indent 4 }}
|
|
policy.json: |
|
|
{{ toJson .Values.conf.policy | indent 4 }}
|
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.tftp_map_file "key" "tftp-map-file") | indent 2 }}
|
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.nginx "key" "nginx.conf") | indent 2 }}
|
|
{{- end }}
|