|
|
|
|
@@ -17,51 +17,48 @@ limitations under the License.
|
|
|
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
|
|
|
{{- $envAll := . }}
|
|
|
|
|
|
|
|
|
|
{{- include "magnum.conf.magnum_values_skeleton" .Values.conf.magnum | trunc 0 -}}
|
|
|
|
|
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.auth_uri -}}
|
|
|
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "auth_uri" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.auth_uri -}}
|
|
|
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.magnum.keystone_authtoken "auth_uri" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
# FIXME(alanmeadows) fix for broken keystonemiddleware oslo config gen in newton - will remove in future
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.auth_url -}}
|
|
|
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "auth_url" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.auth_url -}}
|
|
|
|
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.magnum.keystone_authtoken "auth_url" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
# Set a random string as secret key.
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.memcache_secret_key -}}
|
|
|
|
|
{{- randAlphaNum 64 | set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "memcache_secret_key" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.memcache_secret_key -}}
|
|
|
|
|
{{- randAlphaNum 64 | set .Values.conf.magnum.keystone_authtoken "memcache_secret_key" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.region_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "region_name" .Values.endpoints.identity.auth.user.region_name | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.region_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "region_name" .Values.endpoints.identity.auth.user.region_name | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.project_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "project_name" .Values.endpoints.identity.auth.user.project_name | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.project_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "project_name" .Values.endpoints.identity.auth.user.project_name | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.project_domain_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "project_domain_name" .Values.endpoints.identity.auth.user.project_domain_name | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.project_domain_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "project_domain_name" .Values.endpoints.identity.auth.user.project_domain_name | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.user_domain_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "user_domain_name" .Values.endpoints.identity.auth.user.user_domain_name | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.user_domain_name -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "user_domain_name" .Values.endpoints.identity.auth.user.user_domain_name | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.username -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "username" .Values.endpoints.identity.auth.user.username | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.username -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "username" .Values.endpoints.identity.auth.user.username | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.password -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "password" .Values.endpoints.identity.auth.user.password | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.password -}}
|
|
|
|
|
{{- set .Values.conf.magnum.keystone_authtoken "password" .Values.endpoints.identity.auth.user.password | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token.memcached_servers -}}
|
|
|
|
|
{{- tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | set .Values.conf.magnum.keystone_authtoken.keystonemiddleware.auth_token "memcached_servers" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.keystone_authtoken.memcached_servers -}}
|
|
|
|
|
{{- tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | set .Values.conf.magnum.keystone_authtoken "memcached_servers" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{- if empty .Values.conf.magnum.database.oslo.db.connection -}}
|
|
|
|
|
{{- tuple "oslo_db" "internal" "user" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup"| set .Values.conf.magnum.database.oslo.db "connection" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.database.connection -}}
|
|
|
|
|
{{- tuple "oslo_db" "internal" "user" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup"| set .Values.conf.magnum.database "connection" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{- if empty .Values.conf.magnum.default.oslo.messaging.transport_url -}}
|
|
|
|
|
{{- tuple "oslo_messaging" "internal" "user" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.magnum.default.oslo.messaging "transport_url" | quote | trunc 0 -}}
|
|
|
|
|
{{- if empty .Values.conf.magnum.DEFAULT.transport_url -}}
|
|
|
|
|
{{- tuple "oslo_messaging" "internal" "user" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.magnum.DEFAULT "transport_url" | quote | trunc 0 -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
@@ -71,9 +68,9 @@ metadata:
|
|
|
|
|
name: magnum-etc
|
|
|
|
|
data:
|
|
|
|
|
magnum.conf: |+
|
|
|
|
|
{{- tuple .Values.conf.magnum "etc/_magnum.conf.tpl" . | include "helm-toolkit.utils.configmap_templater" }}
|
|
|
|
|
{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.magnum | indent 4 }}
|
|
|
|
|
api-paste.ini: |+
|
|
|
|
|
{{- tuple .Values.conf.paste "etc/_api-paste.ini.tpl" . | include "helm-toolkit.utils.configmap_templater" }}
|
|
|
|
|
{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | indent 4 }}
|
|
|
|
|
policy.json: |+
|
|
|
|
|
{{ toJson .Values.conf.policy | indent 4 }}
|
|
|
|
|
{{ toJson .Values.conf.policy | indent 4 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
|