Merge "Deprecate usage of authtoken parameters in providers"

This commit is contained in:
Zuul 2022-03-12 05:31:02 +00:00 committed by Gerrit Code Review
commit 627dfd3318
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class Puppet::Provider::Glance < Puppet::Provider::Openstack
end
def self.glance_request(service, action, error, properties=nil)
warning('Usage of keystone_authtoken parameters is deprecated.')
properties ||= []
@credentials.username = glance_credentials['username']
@credentials.password = glance_credentials['password']

View File

@ -0,0 +1,9 @@
---
deprecations:
- |
The ``glance_image`` resource type has been using the credential written in
the ``[keystone_authtoken]`` section of ``glance-api.conf``. However this
behavior has been deprecated and now the resource type first looks for
the yaml files in ``/etc/openstack/puppet``. Make sure one of
``clouds.yaml`` or ``admin-clouds.yaml`` (which is created by
puppet-keystone) is created in that directory.