From 6d432b79b801fbdf3fa2fdf71aeb4434253c923b Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Mon, 21 May 2018 13:29:26 +0700 Subject: [PATCH] Replace port 35357 with 5000 for "auth_url" Based on the change in Keystone Install Guide [1], this patch replace port 35357 with 5000 for "auth_url". For more details, please check similar changes which have been done on other projects: Nova [2], Neutron [3], Cinder [4], Glance [5]. [1] https://review.openstack.org/#/c/541857 [2] https://review.openstack.org/#/c/562812 [3] https://review.openstack.org/#/c/566491 [4] https://review.openstack.org/#/c/565464 [5] https://review.openstack.org/#/c/558932 Change-Id: Ie2e0d277400a05a04767bdf8e7225360f7e48d0c --- manifests/keystone/authtoken.pp | 4 ++-- spec/classes/tacker_keystone_authtoken_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/keystone/authtoken.pp b/manifests/keystone/authtoken.pp index 6153915..a00c835 100644 --- a/manifests/keystone/authtoken.pp +++ b/manifests/keystone/authtoken.pp @@ -13,7 +13,7 @@ # # [*auth_url*] # (Optional) The URL to use for authentication. -# Defaults to 'http://localhost:35357'. +# Defaults to 'http://localhost:5000'. # # [*project_name*] # (Optional) Service project name @@ -186,7 +186,7 @@ class tacker::keystone::authtoken( $password, $username = 'tacker', - $auth_url = 'http://localhost:35357', + $auth_url = 'http://localhost:5000', $project_name = 'services', $user_domain_name = 'Default', $project_domain_name = 'Default', diff --git a/spec/classes/tacker_keystone_authtoken_spec.rb b/spec/classes/tacker_keystone_authtoken_spec.rb index 00809c3..388c4dd 100644 --- a/spec/classes/tacker_keystone_authtoken_spec.rb +++ b/spec/classes/tacker_keystone_authtoken_spec.rb @@ -18,7 +18,7 @@ describe 'tacker::keystone::authtoken' do it 'configure keystone_authtoken' do is_expected.to contain_tacker_config('keystone_authtoken/username').with_value('tacker') is_expected.to contain_tacker_config('keystone_authtoken/password').with_value('tacker_password') - is_expected.to contain_tacker_config('keystone_authtoken/auth_url').with_value('http://localhost:35357') + is_expected.to contain_tacker_config('keystone_authtoken/auth_url').with_value('http://localhost:5000') is_expected.to contain_tacker_config('keystone_authtoken/project_name').with_value('services') is_expected.to contain_tacker_config('keystone_authtoken/user_domain_name').with_value('Default') is_expected.to contain_tacker_config('keystone_authtoken/project_domain_name').with_value('Default') @@ -58,7 +58,7 @@ describe 'tacker::keystone::authtoken' do :www_authenticate_uri => 'https://10.0.0.1:9999/', :username => 'myuser', :password => 'mypasswd', - :auth_url => 'https://127.0.0.1:35357', + :auth_url => 'https://127.0.0.1:5000', :project_name => 'service_project', :user_domain_name => 'domainX', :project_domain_name => 'domainX',