Updated plugins readmes

This commit is contained in:
Trevor Batley 2024-09-27 19:38:39 +10:00
parent d0faf00a26
commit 379278485b
2 changed files with 43 additions and 10 deletions

View File

@ -5,6 +5,7 @@
To install these plugins: To install these plugins:
Copy the tag2distrepo.py and sign.py programs into /usr/lib/koji-hub-plugins Copy the tag2distrepo.py and sign.py programs into /usr/lib/koji-hub-plugins
Set the configurations as per the directions for each plugin below Set the configurations as per the directions for each plugin below
Edit the following settings in /etc/koji-hub/hub.conf to enable the plugins: Edit the following settings in /etc/koji-hub/hub.conf to enable the plugins:
@ -13,15 +14,47 @@ Edit the following settings in /etc/koji-hub/hub.conf to enable the plugins:
Plugins = tag2distrepo sign Plugins = tag2distrepo sign
Reload Apache Reload Apache
$ systemctl reload httpd $ systemctl reload httpd
###koji-plugin-sign ### koji-plugin-sign
Automagically sign rpms with our key after successful build Automagically sign rpms with our key after successful build
This is a slightly modified version of the OSG Software Teams koji-hub plugin which can be found at <https://github.com/osg-htc/koji-plugin-sign> This is a slightly modified version of the OSG Software Teams koji-hub plugin which can be found at <https://github.com/osg-htc/koji-plugin-sign>
###tag2distrepo Copy your gpg keys etc. into /etc/koji-hub/gnupgp
This is a koji-hub plugin available in the available in default koji installation Copy sign.conf into /etc/koji-hub-plugins
Create an external repository for any tag when a new build is completed, or a build is attached (tag-build) to a tag
Edit /etc/koji-hub-plugins/sign.conf to have the correct gpg key names for each tag
### tag2distrepo
This is a koji-hub plugin available in the default koji installation
It will create an external repository for any tag when a new build is completed in, or a build is attached to (tag-build) a tag
Set the extra options on the tag so the plugin will generate the repository:
koji edit-tag -x tag2distrepo.enabled=True -x tag2distrepo.keys='44922a28' smecontribs11
You can check by doing:
koji taginfo smecontribs11
and you should see
Tag: smecontribs11 [38]
Arches: x86_64
Groups:
Tag options:
mock.bootstrap_image : 'rockylinux:8'
mock.package_manager : 'dnf'
rpm.macro.dist : '.el8.sme'
rpm.macro.distribution : 'SME Server v11'
rpm.macro.packager : 'Koozali.org <http://www.koozali.org>'
rpm.macro.vendor : 'Koozali.org <http://www.koozali.org>'
tag2distrepo : '44922a28'
tag2distrepo.enabled : True
Inheritance:

View File

@ -4,12 +4,12 @@
rpm = /bin/rpm rpm = /bin/rpm
gpgbin = /usr/bin/gpg gpgbin = /usr/bin/gpg
gpg_path = /etc/koji-sign-plugin/gnupg gpg_path = /etc/koji-sign-plugin/gnupg
gpg_name = My Company, Inc. <support@mycompany.com> gpg_name = kojiadmin@koozali.org
gpg_pass = my_passphrase gpg_pass = ''
enabled = 1 enabled = 1
# Defaults can be overridden on a per tag basis # Defaults can be overridden on a per tag basis
[dist-foo-build] #[dist-sme12-os]
gpg_name = My Other Company, Inc. <support@myothercompany.com> #gpg_name = sme12@koozali.org
gpg_pass = my_other_passphrase #gpg_pass = ''