Enforce usage of specific endpoint in providers

This change ensures that all requests to Keystone API use the specific
endpoint, instead of the public endpoint which the openstack client
uses by default.

Change-Id: I33520272b04c908f25eb145ae5db21e6bc165c99
This commit is contained in:
Takashi Kajinami 2021-12-09 18:13:30 +09:00
parent 50661f3fef
commit c1e3ff8c48
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ class Puppet::Provider::Keystone < Puppet::Provider::Openstack
creds['region_name'] = conf['region_name']
end
if conf['interface']
creds['interface'] = conf['interface']
end
return creds
else
raise(Puppet::Error, "File: #{conf_filename} does not contain all " +