Merge "Make sure qemu CA has correct permissions" into stable/victoria

This commit is contained in:
Zuul 2020-11-09 23:43:40 +00:00 committed by Gerrit Code Review
commit 3e594448c6
1 changed files with 20 additions and 0 deletions

View File

@ -70,6 +70,26 @@ define tripleo::certmonger::qemu (
require => Class['::certmonger'],
}
if $cacertfile {
# Sometimes certmonger returns before creating the cacert file. This has
# been reported in: https://bugzilla.redhat.com/show_bug.cgi?id=1759281
# Until this is fixed, add this workaround.
exec { $cacertfile :
require => Certmonger_certificate[$name],
command => "test -f ${cacertfile}",
unless => "test -f ${cacertfile}",
tries => 60,
try_sleep => 1,
timeout => 60,
path => '/usr/bin:/bin',
}
file { $cacertfile :
require => Exec[$cacertfile],
mode => '0644'
}
}
file { $service_certificate :
require => Certmonger_certificate[$name],
mode => '0644'