puppet-keystone/lib/puppet/provider
Sofer Athlan-Guyot 795bb1f604 Remove user/role prefetch to support multi-domain.
In keystone when the multi-domain configuration is enable, listing all
the user is no longer supported.  You have to specify the domain.  The
rational is that some domain will have LDAP backend (possibly AD) with
tons of users.  Listing them all would not be reliable.

The prefetch feature in puppet needs to know all users and create an
associated object.  This is not a good idea when the number of user is
too high.  Thus the removal of this is necessary.  The rational for
using prefetch is that checking all items in one go "cost" less than
fetching individual information.  As the number of user defined in the
catalog is likely to be less than the number of user in the keystone db,
this seems dubious that this would be case here, hence the removal.

As a consequence the keystone_user_role needs prefetch removal as well.
It actually greatly simplify the code.  A cache is made for user and
project id to minimize the number of requests to the minimum.

Closes-Bug: 1554555
Closes-Bug: 1485508

Depends-On: I5b334e3ffd26df4ba8584d77a5e41b56e73536c8
Change-Id: I8e117a9ddbd2ed5b3df739a0b27a66ad07a33e29
(cherry picked from commit 64100bb284)
2016-04-24 11:20:51 +00:00
..
keystone support for keystone v3 api - v3 domain utility code 2015-07-08 15:50:14 -06:00
keystone_config Reflect provider change in puppet-openstacklib 2015-08-14 11:11:25 +02:00
keystone_domain Do not manage keystone provider resources if prefetch fails 2016-02-16 18:16:45 -07:00
keystone_domain_config Add keystone domain specific configuration. 2016-01-05 19:42:15 +00:00
keystone_endpoint Do not manage keystone provider resources if prefetch fails 2016-02-16 18:16:45 -07:00
keystone_identity_provider Resource keystone_identity_provider for Keystone. 2015-11-24 20:16:13 +01:00
keystone_paste_ini Add native types for keystone paste configuration 2014-11-19 14:35:44 +05:30
keystone_role Do not manage keystone provider resources if prefetch fails 2016-02-16 18:16:45 -07:00
keystone_service Do not manage keystone provider resources if prefetch fails 2016-02-16 18:16:45 -07:00
keystone_tenant Do not manage keystone provider resources if prefetch fails 2016-02-16 18:16:45 -07:00
keystone_user Remove user/role prefetch to support multi-domain. 2016-04-24 11:20:51 +00:00
keystone_user_role Remove user/role prefetch to support multi-domain. 2016-04-24 11:20:51 +00:00
keystone.rb Remove user/role prefetch to support multi-domain. 2016-04-24 11:20:51 +00:00