Bug 788708

Summary: Need a bootstrap.sh style script for system registration
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PackagingAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lzap, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:25:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch with bootstrap script and specfile changes none

Description Mike McCune 2012-02-08 21:01:59 UTC
We need a script that can assist customers with registration of clients.

Currently customers must take a multistep process:

https://fedorahosted.org/katello/wiki/GuideSystemRegistrationClient

to register a system with is very painful.

We can at least automate this with a script.  See attached patch that addresses this.

Comment 1 Mike McCune 2012-02-08 21:04:06 UTC
Created attachment 560385 [details]
patch with bootstrap script and specfile changes

Comment 2 Mike McCune 2012-02-08 21:27:15 UTC
Pushed the script into our katello git repo for testing in the short term.  we can get this as part of the project's RPMs later on if we like it:


commit 02e378f19b664c740a3d2c72c4db75f432493a44
Author: Mike McCune <mmccune>
Date:   Wed Feb 8 13:06:22 2012 -0800

    788708 - test script for bootstrapping clients.  not for production

Comment 3 Lukas Zapletal 2012-02-20 14:25:23 UTC
Mike I am working on a bootstrap RPM:

https://fedorahosted.org/katello/wiki/ConsumerBootstrap

That will slighly change the script. It's currently in the "certs" change, I am blocked by some certificates changes Martin Bacovsky is working on.

https://bugzilla.redhat.com/show_bug.cgi?id=790835

Once I am done I will modify the bootstrap shell script.

Comment 4 Lukas Zapletal 2012-02-27 12:34:59 UTC
So the bootstrap RPM is ready, do we want to deploy such a shell script in the /var/www/html/pub directory?

Would be something like this:

https://fedorahosted.org/katello/wiki/ConsumerBootstrap#Examplebootstrapsession

Comment 5 Lukas Zapletal 2012-02-27 15:28:21 UTC
Part of this bug should be to remove /var/www/html/pub/bootstrap dir - it was added by Spacewalk folks. Its a copy of Spacewalk bootstrap (an example). We don't need it.

Comment 6 Lukas Zapletal 2012-03-05 22:12:12 UTC
Since we have a nice bootstrap RPM that configures rhsm, there is no need of a bootstrap script as it would only contain one simple line.

Example bootstrap:

yum -y install http://kat-alfa.example.com/pub/candlepin-cert-consumer-kat-alfa.example.com-1.0-1.noarch.rpm && subscription-manager register --activationkey=654d6c8aaf7

Pushing upstream removal of old legacy generating code.

6269701 788708 - removing legacy bootstrap script and generator

Comment 8 Mike McCune 2012-03-07 01:32:21 UTC
Needed to move the creation of /var/www/html/pub up a bit higher in the order:

commit 1d7ea9ab2fc0d36bf47259f945f90593a77e5e91
Author: Mike McCune <mmccune>
Date:   Tue Mar 6 17:31:04 2012 -0800

    788708 - moving the var/www/html/pub dir creation a bit higher up
    
    Previously it was created after it was actually needed.

Comment 9 Mike McCune 2012-03-07 23:43:25 UTC
mass move ON_QA after brewing

Comment 10 Og Maciel 2012-03-12 20:30:47 UTC
Validated:
* candlepin-0.5.24-1.el6.noarch
* candlepin-tomcat6-0.5.24-1.el6.noarch
* katello-0.1.303-1.el6.noarch
* katello-all-0.1.303-1.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.4-1.el6.noarch
* katello-cli-0.1.103-1.el6.noarch
* katello-cli-common-0.1.103-1.el6.noarch
* katello-common-0.1.303-1.el6.noarch
* katello-configure-0.1.106-1.el6.noarch
* katello-glue-candlepin-0.1.303-1.el6.noarch
* katello-glue-foreman-0.1.303-1.el6.noarch
* katello-glue-pulp-0.1.303-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.8-1.el6.noarch
* pulp-1.0.0-4.el6.noarch
* pulp-common-1.0.0-4.el6.noarch
* pulp-selinux-server-1.0.0-4.el6.noarch