From 46673d3c793d84e03a766fc1e51f53a52ae8bd8e Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 5 Dec 2014 15:02:53 -0500 Subject: [PATCH] service_identity: add user/role ordering If configure_user_role and configure_user are True, we may want to ensure the user is created before role assignment. Change-Id: Id21623619c65c5ff1970b43b2d6a3857410a1fd7 --- manifests/resource/service_identity.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/resource/service_identity.pp b/manifests/resource/service_identity.pp index 704e9cf73..08eaa7f5e 100644 --- a/manifests/resource/service_identity.pp +++ b/manifests/resource/service_identity.pp @@ -140,6 +140,9 @@ 'ensure' => 'present', 'roles' => $roles, }) + if $configure_user { + Keystone_user[$auth_name] -> Keystone_user_role["${auth_name}@${tenant}"] + } } if $configure_service {