Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 788708 - Need a bootstrap.sh style script for system registration
Summary: Need a bootstrap.sh style script for system registration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Og Maciel
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-08 21:01 UTC by Mike McCune
Modified: 2019-09-26 15:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:25:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch with bootstrap script and specfile changes (3.08 KB, patch)
2012-02-08 21:04 UTC, Mike McCune
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.