diff --git a/templates/cinder/config/00-global-defaults.conf b/templates/cinder/config/00-global-defaults.conf index 5f52eda2..44bc525d 100644 --- a/templates/cinder/config/00-global-defaults.conf +++ b/templates/cinder/config/00-global-defaults.conf @@ -122,6 +122,25 @@ project_domain_name = Default region_name = {{ .Region }} {{ end -}} +[glance] +interface = internal +auth_url = {{ .KeystoneInternalURL }} +{{ if (index . "ApplicationCredentialID") -}} +auth_type = v3applicationcredential +application_credential_id = {{ .ApplicationCredentialID }} +application_credential_secret = {{ .ApplicationCredentialSecret }} +{{ else -}} +auth_type = password +username = {{ .ServiceUser }} +password = {{ .ServicePassword }} +user_domain_name = Default +project_name = service +project_domain_name = Default +{{ end -}} +{{ if (index . "Region") -}} +region_name = {{ .Region }} +{{ end -}} + [service_user] send_service_user_token = True auth_url = {{ .KeystoneInternalURL }}