diff --git a/manifests/auth_file.pp b/manifests/auth_file.pp index c3f9e86..14dfd5c 100644 --- a/manifests/auth_file.pp +++ b/manifests/auth_file.pp @@ -111,7 +111,7 @@ # # [*identity_api_version*] # (optional) Identity API version to use. -# Defaults to undef. +# Defaults to '3'. # # [*object_api_version*] # (optional) Object API version to use. @@ -144,7 +144,7 @@ class openstack_extras::auth_file( $network_api_version = undef, $image_api_version = undef, $volume_api_version = undef, - $identity_api_version = undef, + $identity_api_version = '3', $object_api_version = undef, ) { diff --git a/spec/classes/openstack_extras_auth_file_spec.rb b/spec/classes/openstack_extras_auth_file_spec.rb index 3c0c074..8a8d96f 100644 --- a/spec/classes/openstack_extras_auth_file_spec.rb +++ b/spec/classes/openstack_extras_auth_file_spec.rb @@ -26,6 +26,7 @@ describe 'openstack_extras::auth_file' do 'export KEYSTONE_ENDPOINT_TYPE=\'publicURL\'', 'export NOVA_ENDPOINT_TYPE=\'publicURL\'', 'export NEUTRON_ENDPOINT_TYPE=\'publicURL\'', + 'export OS_IDENTITY_API_VERSION=\'3\'', ]) end end @@ -57,7 +58,7 @@ describe 'openstack_extras::auth_file' do :network_api_version => '2.0', :image_api_version => '2', :volume_api_version => '2', - :identity_api_version => '3', + :identity_api_version => '3.1', :object_api_version => '1', } end @@ -87,7 +88,7 @@ describe 'openstack_extras::auth_file' do 'export OS_NETWORK_API_VERSION=\'2.0\'', 'export OS_IMAGE_API_VERSION=\'2\'', 'export OS_VOLUME_API_VERSION=\'2\'', - 'export OS_IDENTITY_API_VERSION=\'3\'', + 'export OS_IDENTITY_API_VERSION=\'3.1\'', 'export OS_OBJECT_API_VERSION=\'1\'', ]) end