aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-04-07 10:09:11 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-04-07 10:12:54 +0300
commit13ea87e658e36d1afcc3e4db7f43bcfc068e1f49 (patch)
tree2dd77077f3fe45ca6756b9784a9c5ef501e0b003
parenta05be0f0be6d72745e41a889246ad947d7a8c9d1 (diff)
Enable creation of keystone domain when ldap backends are created
This sets the flag create_domain_entry for the ldap_backend resource, which will create the domain for the ldap backend (this was previously not the case since only the configuration was created). Furtherly, this flag will also refresh the keystone server, so the changes come into effect. Note that this is only done in step 3, so the domains are created there and the refresh happens in that step. Also, this is only done for the bootstrap node, since when the other nodes start, they will already have the domains available in the keystone database and there won't be a need to restart. Related-Bug: #1677603 Depends-On: Ib6c633b6a975e4b760c10a2aef3c252885b05e28 Change-Id: Id879cf5c5ae39d37bf58b73c78733001d2b03d9c
-rw-r--r--manifests/profile/base/keystone.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/profile/base/keystone.pp b/manifests/profile/base/keystone.pp
index 5909337..9f8f48a 100644
--- a/manifests/profile/base/keystone.pp
+++ b/manifests/profile/base/keystone.pp
@@ -221,7 +221,9 @@ class tripleo::profile::base::keystone (
if $ldap_backend_enable {
validate_hash($ldap_backends_config)
- create_resources('::keystone::ldap_backend', $ldap_backends_config)
+ create_resources('::keystone::ldap_backend', $ldap_backends_config, {
+ create_domain_entry => $manage_domain,
+ })
}
}