<div dir="ltr"><div class="gmail_extra"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000">Hi Jeff,</font></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000"> Thanks for the help. I just wanted to clarify a few things</font></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000"><br></font></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000">1. When you say install "Spacewalk client tools & Libraries first", does that mean the following steps?</font></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal"><span style="background:rgb(247,247,247)">rpm -Uvh </span><span style="background:rgb(247,247,247)"><a href="http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm">http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm</a></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal"><br></p><p class="MsoNormal"><span style="background:rgb(247,247,247)">rpm -Uvh </span><span style="background:rgb(247,247,247)"><a href="http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</a></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal"><br></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><span style="font-size:9.75pt;background-color:rgb(247,247,247)">yum install rhn-client-tools rhn-check rhn-setup
rhnsd m2crypto yum-rhn-plugin</span><br></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><span style="background:rgb(247,247,247)"><br></span></p><p style="margin:0in"><font color="#000000" face="Verdana">2.  I did find the bootstrap script /var/www/html/pub/bootstrap/client_config_update.py is this it? If so this is run after the steps above?</font></p><p style="margin:0in;font-size:9.75pt;color:black"><font face="verdana, sans-serif"><br></font></p><p style="margin:0in"><font face="verdana, sans-serif" color="#000000">3. This method still seems to involve creating a local yum repo on the spacewalk server to serve out the packages for offline servers. As a result I'll need to still login to a machine and create a .repo file on the remote server that needs to be registered. Isn't there any way to automate registration of servers with a script? It surprising spacewalk doesn't have an easier way to handle this.</font></p><p style="margin:0in"><font face="verdana, sans-serif" color="#000000"><br></font></p><p style="margin:0in"><font face="verdana, sans-serif" color="#000000">4. Once I register the remote servers, will i be able to update the spacewalk client packages provided they are subscribed to the spacewalk channel?</font></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><br></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><br></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black">Thank you,</p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black">Jason</p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><br></p><p style="margin:0in;font-family:Verdana;font-size:9.75pt;color:black"><br></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">________________________________________________________________________________________________________</span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Good morning, Jason, et al.</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">To register an existing server, you’ll need to install the
Spacewalk client tools & libraries first.  That’ll extend the
capabilities of yum (or the appropriate update manager,) to communicate with a
Spacewalk service.  Once that’s done, you’ll need to run
/usr/sbin/rhn_register, /usr/sbin/rhnreg_ks or the bootstrap script (bootstrap
runs rhnreg_ks internally.)</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The registration script normally gets generated into
/var/www/html/pub/bootstrap.</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The bootstrap script does perform some other activities, such as
a full system update (through yum, zypper, etc.,) downloading SSL certs, and so
forth.  You might want to run it, you also might want to manually register
your clients, depending on your local requirements.</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Jeff Kalchik</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Systems Engineering</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Land O’Lakes</span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
[<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>Jason Calafiore<br>
<b>Sent:</b> Thursday, June 11, 2015 7:55 AM<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> Re: [Spacewalk-list] Registering Offline servers to Spacewalk</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:black">Hi Marino,</span></p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-family:Arial,sans-serif;color:black"> I have add the spacewalk repo as a child
for my base channels, but I am dealing with the initial implementation of
spacewalk in my existing environment, so I don't understand how
kickstart would be applicable.</span></p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"> </p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial">Can you explain a little
more about the registration script? Where is it exactly and how could i modify
it as you are suggesting to register existing servers?</p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><br>
Thank you,</p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial">Jason</p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"> </p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">_______________________________________________________________</span></p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">I always include the spacewalk clients in a
child repo of my base channels then include it in my kickstarts. Then I can
view the kickstart and pick out the URI‎ yum has an option to install using an
adhock yumrepo. Also you may not be aware of this but spacewalk generates a
boilerplate registration script for you in the public directory for apache you
can use as a template to modify into your own custom registration script.</span></p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Additionally yum and the rpm command can
install packages over a network by specifying the URI as the package name.</span></p>

<p class="MsoNormal" style="background-image:initial;background-repeat:initial"><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p>

<table class="" border="0" cellpadding="0" width="100%" style="width:100%;border-spacing:0px;background-image:initial;background-repeat:initial">
 <tbody><tr>
  <td style="padding:0.75pt;font-size:initial;text-align:initial">
  <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:
  </span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif">Jason
  Calafiore</span></p>
  <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">Sent: </span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif">Wednesday, June 10,
  2015 17:51</span></p>
  <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">To: </span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></span></p>
  <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">Reply To: </span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></span></p>
  <p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">Subject: </span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif">[Spacewalk-list]
  Registering Offline servers to Spacewalk</span></p>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Hi
All,</p>

<p class="MsoNormal"> I
am trying to figure out a an easy to register servers that are already created
and offline without have to reach out to the internet to get the necessary
packages.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The
only way I could do this was to do the following below by creating a yum repo
with the necessary packages and then on a client server configure a .repo file
that get the necessary packages. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Is
there any easier way to do this? I would think spacewalk would have an easy way
to register clients especially offline servers. I had asked this before and
someone suggested a scripts on github, but couldn't figure it out.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal">Jason</p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:14pt;font-family:Calibri,sans-serif;color:rgb(46,117,181)"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-family:Calibri,sans-serif;color:rgb(91,155,213)">Create Local Repo on the spacewalk Server</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">mkdir /var/www/html/pub/spacewalk-client</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">cd /var/www/html/pub/spacewalk-client</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">repotrack -a x86_64 -p
/var/www/html/pub/spacewalk-client rhn-client-tools rhn-check rhn-setup rhnsd
m2crypto yum-rhn-plugin</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">rm *i686* -f</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">wget <a href="http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm">http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm</a></span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">wget <a href="http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</a></span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">creapterepo
/var/www/html/pub/spacewalk-client</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-family:Calibri,sans-serif;color:rgb(91,155,213)">Register Server to Spacewalk</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">vi/etc/yum.repos.d/spacewalk-local.repo</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">[spacewalk-local-install-repo]</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">name=Spacewalk Client Install</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">baseurl=<a href="http://spacewalk-server.com/pub/spacewalk-client">http://spacewalk-server.com/pub/spacewalk-client</a></span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">gpgcheck=0</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">gpgkey=</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">enabled=1</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">Disable other repos in /yum.repos.d</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">yum install rhn-client-tools rhn-check
rhn-setup rhnsd m2crypto yum-rhn-plugin</span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black;background:rgb(247,247,247)"># rpm -Uvh </span><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><a href="http://ghslspacewalk.ds.src.bah.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm"><span style="background:rgb(247,247,247)">http://spacewalk-server.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm</span></a></span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></p>

<p style="margin:0in 0in 0.0001pt"><span style="font-size:11pt;font-family:Calibri,sans-serif">  rhnreg_ks --serverUrl=<a href="https://spacewalk-server.com/XMLRPC--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT--activationkey=1-centos-server-7">https://spacewalk-server.com/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-centos-server-7</a></span></p>

<p class="MsoNormal" style="margin-bottom:12pt"> </p>

<p class="MsoNormal">This
message may contain confidential material from Land O'Lakes, Inc. (or its
subsidiary) for the sole use of the intended recipient(s) and may not be
reviewed, disclosed, copied, distributed or used by anyone other than the
intended recipient(s). If you are not the intended recipient, please contact
the sender by reply email and delete all copies of this message. </p></div></div>