2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-06-18 01:20:47 +00:00

Add all gpgkeys to local repositories

gpgkey can take multiple, and better to specify them all instead
of just one.
This commit is contained in:
Jarrod Johnson
2025-04-11 12:13:30 -04:00
parent 9174ad651f
commit 1985525cc0
@@ -59,4 +59,5 @@ for sec in c.sections():
repout.write('baseurl=https://{}/confluent-public/os/{}/distribution/{}\n'.format(server, profile, repopath))
repout.write('enabled=1\n')
if gpgkeys:
repout.write('gpgkey=file://' + gpgkeys[0] + '\n')
gpgkeyvals = ['file://{}'.format(x) for x in gpgkeys]
repout.write('gpgkey=' + ' '.join(gpgkeyvals) + '\n')