diff --git a/hooks/heat_context.py b/hooks/heat_context.py index c0f21ed..ae1b4dc 100644 --- a/hooks/heat_context.py +++ b/hooks/heat_context.py @@ -43,6 +43,7 @@ def get_encryption_key(): encryption = pwgen(16) with open(encryption_path, 'w') as enc: enc.write(encryption) + return encryption class EncryptionContext(context.OSContextGenerator): diff --git a/templates/heat.conf b/templates/heat.conf index f349d4c..a9f417e 100644 --- a/templates/heat.conf +++ b/templates/heat.conf @@ -40,7 +40,7 @@ kombu_ssl_ca_certs = {{ rabbit_ssl_ca }} {% if auth_host -%} [keystone_authtoken] -auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/ +auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0 auth_host = {{ auth_host }} auth_port = {{ auth_port }} auth_protocol = {{ auth_protocol }}