[Spacewalk-list] How to set the package Content Provider

Justin Sherrill jsherril at redhat.com
Wed Nov 19 02:03:39 UTC 2008


Jesus M. Rodriguez wrote:
> On Tue, Nov 18, 2008 at 11:56 AM, Justin Sherrill <jsherril at redhat.com> wrote:
>   
>> The installing OS doesn't really make any difference. We store a mapping
>> of GPG Key ids -> Providers in the rhnPackageKey table.  Here's an
>> example of an insertion that we do upon installation of spacewalk:
>>
>> #sqlplus spacewalk/spacewalk at xe
>>
>> sqlplus>  insert into rhnPackageKey (id, key_id, key_type_id,
>> provider_id) values
>> (rhn_pkey_id_seq.nextval, 'b44269d04f2a6fd2',
>> lookup_package_key_type('gpg'), lookup_package_provider('Fedora'));
>>
>> This requires on their being a package provider (from
>> rhnPackageProvider) named 'Fedora'.  To insert that, we ran:
>>
>> sqlplus>  insert into rhnPackageProvider (id, name) values
>> (rhn_package_provider_id_seq.nextval, 'Fedora' );
>> sqlplus>commit
>>
>>
>> To get the gpg key ID that you need to insert, simply run 'rpm -qip
>> package.rpm' and look for the "Key ID" field.   I'd like to make a UI
>> for adding package Ids and providers, but currently there isn't a way to
>> do that.  What were the GPG ids for packages that are showing up as unknown?
>>     
>
> How will custom keys get imported into this table?
>
> jesus
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>   
The key should be added to the DB when a package is imported with a new
key.   Currently there isn't a way to associate a provider to a key,
which is why UI bits would be nice.   Right now, a custom package would
just show up with a 'unknown' provider.

-Justin




More information about the Spacewalk-list mailing list