You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have currently installed version 4.1.0.
Some repos like atomic or occasionally puppet come with multiple keys. In the current module, it is possible to specify more than one gpgkey for a repo, but then the keys are not automatically included. It is possible that I missed the correct way of specifying the keys, but after several attempts with Foreman, I locally solved the problem by a slight modification of the code (see hereafter).
I hope this helps.
C
diff init.pp init.pp.sav
145,158c145,155
< $matches0 = split ($attributes['gpgkey'], ' ')
< $matches0.each |String $attr| {
< $matches = $attr.match('^file://(.*)$')
< if $matches {
< $gpgkey = $matches[1]
< if $gpgkey =~ Stdlib::AbsolutePath and $gpgkey in $gpgkeys {
< if !defined(Yum::Gpgkey[$gpgkey]) {
< yum::gpgkey { $gpgkey:
< * => $gpgkeys[$gpgkey],
< }
< } # end if Yum::Gpgkey[$gpgkey] is not defined
< } # end if $gpgkey exists in gpgkeys
< } # end if gpgkey is a file:// resource
< }
$matches = $attributes['gpgkey'].match('^file://(.*)$')
if $matches {
$gpgkey = $matches[1]
if $gpgkey =~ Stdlib::AbsolutePath and $gpgkey in $gpgkeys {
if !defined(Yum::Gpgkey[$gpgkey]) {
yum::gpgkey { $gpgkey:
* => $gpgkeys[$gpgkey],
}
} # end if Yum::Gpgkey[$gpgkey] is not defined
} # end if $gpgkey exists in gpgkeys
} # end if gpgkey is a file:// resource
The text was updated successfully, but these errors were encountered:
Hello,
I have currently installed version 4.1.0.
Some repos like atomic or occasionally puppet come with multiple keys. In the current module, it is possible to specify more than one gpgkey for a repo, but then the keys are not automatically included. It is possible that I missed the correct way of specifying the keys, but after several attempts with Foreman, I locally solved the problem by a slight modification of the code (see hereafter).
I hope this helps.
C
The text was updated successfully, but these errors were encountered: