Browse Source

Use internal identity endpoint for services

Depends-On: Id74966d9f1279f725bc41c08e434230a7845bbc1
Change-Id: If77f23c98ac3c932d6bfc46281cc14105e9ccd9f
Samuel Cassiba 9 months ago
parent
commit
3d096b57fd
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      recipes/default.rb
  2. 2
    2
      recipes/identity_registration.rb

+ 2
- 2
recipes/default.rb View File

@@ -86,8 +86,8 @@ if node['openstack']['mq']['service_type'] == 'rabbit'
86 86
   node.default['openstack']['network']['conf_secrets']['DEFAULT']['transport_url'] = rabbit_transport_url 'network'
87 87
 end
88 88
 
89
-identity_endpoint = public_endpoint 'identity'
90
-auth_url = auth_uri_transform identity_endpoint.to_s, node['openstack']['api']['auth']['version']
89
+identity_endpoint = internal_endpoint 'identity'
90
+auth_url = ::URI.decode identity_endpoint.to_s
91 91
 
92 92
 db_user = node['openstack']['db']['network']['username']
93 93
 db_pass = get_password 'db', 'neutron'

+ 2
- 2
recipes/identity_registration.rb View File

@@ -26,8 +26,8 @@ class ::Chef::Recipe
26 26
   include ::Openstack
27 27
 end
28 28
 
29
-identity_endpoint = public_endpoint 'identity'
30
-auth_url = auth_uri_transform identity_endpoint.to_s, node['openstack']['api']['auth']['version']
29
+identity_endpoint = internal_endpoint 'identity'
30
+auth_url = ::URI.decode identity_endpoint.to_s
31 31
 
32 32
 interfaces = {
33 33
   public: { url: public_endpoint('network') },

Loading…
Cancel
Save