This patch makes use of Puppet native function
create_resources() in order to generate
Keystone domain resources from hash
provided by parce_it() function.
This approach required modification of parce_it()
function so it can parse list of additional domains strings
and generate a hash in form of:
This form of hash is suitable to be taken by create_resources()
function. Puppet define plugin_ldap::multiple_domain
was also modified to comply with create_resources()
function.
Reviewed: https:/ /review. openstack. org/425801 /git.openstack. org/cgit/ openstack/ fuel-plugin- ldap/commit/ ?id=7cf2e0f36ee 174796f15d6e0cb cbfdaef55d4fe3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7cf2e0f36ee1747 96f15d6e0cbcbfd aef55d4fe3
Author: Mykyta Karpin <email address hidden>
Date: Thu Jan 26 19:27:27 2017 +0200
Rewrite additional domains generation
This patch makes use of Puppet native function resources( ) in order to generate
create_
Keystone domain resources from hash
provided by parce_it() function.
This approach required modification of parce_it()
function so it can parse list of additional domains strings
and generate a hash in form of:
domain1_name => { property1 => value1,
property2 => value2,
.....
propertyx => valuex },
property2 => value2,
.....
propertyx => valuex },
domain2_name => { property1 => value1,
.....and so on
This form of hash is suitable to be taken by create_resources() ldap::multiple_ domain
function. Puppet define plugin_
was also modified to comply with create_resources()
function.
Change-Id: I14321af5efa18f 1381a51668ed1c5 c50c06a0002
Closes-Bug: #1658655