[katello-devel] client bootstrap script for easy registration

Mike McCune mmccune at redhat.com
Wed Feb 8 21:57:07 UTC 2012


That is how the katello-certs-tools works so we already require 
rpmbuild.  We could definitely package up the certs+script into an 
unsigned RPM that sits on the /pub/ folder of the Katello server.


On 02/08/2012 01:37 PM, Eric Sammons wrote:
> This is great news.  I wonder though if it would be possible to have katello-configure automatically generate a rpm with the necessary %post and sed commands along with the candlepin cert and then have that rpm placed into DOCROOT so clients can simply do a rpm -ihv http://...
>
> -Eric
>
> Mike McCune<mmccune at redhat.com>  wrote:
>
> I got annoyed having to follow the client registration steps:
>
> https://fedorahosted.org/katello/wiki/GuideSystemRegistrationClient
>
> so I wrote a script to do these things automatically.  You can find it here:
>
> http://git.fedorahosted.org/git?p=katello.git;a=blob_plain;f=scripts/bootstrap.sh;hb=HEAD
>
> or in git under scripts/bootstrap.sh
>
> You run it and it reconfigures your rhsm.conf to point at the $1
> hostname you are wanting to register the system to.  It also SCPs the
> candlepin cert file to the client as well.  The next steps will be to
> modify our katello-configure RPM to symlink that cert to
> /var/www/html/pub so clients can just download it directly.
>
> I submitted a bug + patch for if/when we want to do this bootstrap thing
> for real:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=788708
>
> Mike




More information about the katello-devel mailing list