diff --git a/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch b/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch index 4bdc84fb2..79783195d 100644 --- a/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch +++ b/config/puppet-modules/openstack/puppet-keystone-17.4.0/debian/patches/0003-Update-Barbican-admin-secret-s-user-project-IDs-duri.patch @@ -1,7 +1,7 @@ -From da6335eee107386e555097522152fcbb335c608c Mon Sep 17 00:00:00 2001 +From 127b8a6d5b8845a25044f3000a8a14d032546135 Mon Sep 17 00:00:00 2001 From: Dan Voiculeasa Date: Mon, 20 Sep 2021 17:25:11 +0300 -Subject: [PATCH 3/3] Update Barbican admin secret's user/project IDs during +Subject: [PATCH] Update Barbican admin secret's user/project IDs during bootstrap Adapt 0006-update-Barbican-admin-secret-s-user-project-IDs-duri.patch @@ -36,7 +36,7 @@ Signed-off-by: Dan Voiculeasa 1 file changed, 18 insertions(+) diff --git a/manifests/bootstrap.pp b/manifests/bootstrap.pp -index d8db334..6d79625 100644 +index d8db334..8a2feea 100644 --- a/manifests/bootstrap.pp +++ b/manifests/bootstrap.pp @@ -69,6 +69,8 @@ class keystone::bootstrap ( @@ -55,7 +55,7 @@ index d8db334..6d79625 100644 + if $dc_admin_user_id and $dc_admin_project_id { + exec { 'update keystone admin assignment actor_id': + command => "sudo -u postgres psql -d keystone -c \"update public.assignment set actor_id='$dc_admin_user_id' from public.local_user where public.assignment.actor_id=public.local_user.user_id and public.local_user.name='admin'\"", -+ require => Exec['keystone-manage bootstrap'], ++ require => Exec['keystone bootstrap'], + } + -> exec { 'update keystone admin assignment target_id': + command => "sudo -u postgres psql -d keystone -c \"update public.assignment set target_id='$dc_admin_project_id' from public.project where public.assignment.target_id=public.project.id and public.project.name='admin'\"", @@ -72,5 +72,5 @@ index d8db334..6d79625 100644 # use the below resources to make sure the current resources are # correct so if some value was updated we set that. -- -2.30.0 +2.34.1