OK make_sat_client: does the magic and makes a node a Satellite/Spacewalk client init_sat_client: (optional) does additional configuration like removing duplicate profiles, joining config channels, uploading local files to config channels
Make_sat_client requires kickstart profiles matching the clients type (i.e. RHEL5 Server). For example 'mksatclient5s-x86_64' for 64 bit RHEL 5 server. The kickstart profile needs an activation key to subscribe the appropriate child channels (like RHN Tools). I generally name the activation key to be the same as the kickstart profile. I've attached a sample kickstart profile but I've removed identifying strings and the SSL and GPG keys. You'll need to put this in. Remember that kickstart profiles and activations are bound to an organisation so if you are multi-org, you'll need to clone these between orgs. The script 'clone_ak_and_kp_between_orgs.pl' should be a good starting point for you. Let me know if you have any questions on the above. Hope the helps. CC On Sat, Sep 18, 2010 at 4:55 AM, Jason Welsh <[email protected]> wrote: > that would be MOST appreciated.. ;) > > Jason > > > On 09/17/10 16:46, Colin Coe wrote: >> >> Those .rpm files that aren't RPM files contain the following >> ---- >> <p>The file you requested could not be downloaded, likely due to one >> of the foll owing reasons:</p> >> <ol> >> <li>The url has expired.</li> >> <li>The url has been modified.</li> >> <li>The Spacewalk server does not have read permissions on the >> specified f ile.</li> >> </ol> >> <p>Please revisit the page you recieved this url from to recieve a new >> one.</p> >> ---- >> >> The way I handle this is to have a kickstart profile and activation >> key called make_sat_client_el5s for example where el5s is RHEL5 >> Server. I then have a script stored centrally that all nodes can see >> called 'make_sat_client' which determines which kickstart profile to >> use, downloads said kickstart file, hacks out the 'interesting bits' >> of the kickstart and the runs the result. >> >> You could do something similar. >> >> If you want I can post these to the list on Monday. >> >> CC >> >> On Sat, Sep 18, 2010 at 2:09 AM,<[email protected]> wrote: >>> >>> On Wed, Sep 15, 2010 at 07:59:43AM +0800, Colin Coe wrote: >>>> >>>> Mike >>>> >>>> Yes, clients can access RPMs before activation/registration but not >>>> trivially. Here's a snippet from the post script from a kickstart: >>>> --- >>>> mkdir -p /tmp/rhn_rpms/optional >>>> cd /tmp/rhn_rpms/optional >>>> wget -P /tmp/rhn_rpms/optional >>>> >>>> http://127.0.0.1/download/package/914a8ce4e6f7676172d0a4a7f676c27ec9a2a671/0/1/574/libxml2-python-2.6.26-2.1.2.8.x86_64.rpm >>>> >>>> http://127.0.0.1/download/package/820777256524475e88b262c612dbac16af14ccc4/0/1/9831/rhnlib-2.5.26-1.el5.noarch.rpm >>>> >>>> http://127.0.0.1/download/package/3fd11ca62e5c2445fb825be90c6d180b6ff7a258/0/1/1433/pyOpenSSL-0.6-1.p24.7.2.2.x86_64.rpm >>>> rpm -Uvh --replacepkgs --replacefiles >>>> /tmp/rhn_rpms/optional/pyOpenSSL* /tmp/rhn_rpms/optional/rhnlib* >>>> /tmp/rhn_rpms/optional/libxml2-python* >>>> --- >>>> >>>> Notice the 'wget' followed by the 'rpm'. >>> >>> I assume that instead of 127.0.0.1, you mean the ip address of the >>> spacewalk server, right? >>> >>> like I stated before, I couldnt get wget to work with https, we we >>> decided to do the following instead.. >>> >>> curl -O -k >>> >>> https://redhouse/download/package/8abd60ca2d6cc6a4e8/1284630970455/1/6660/spacewalk-koan-0.2.5-1.fc11.noarch.rpm >>> >>> for the 4 packages in question, BUT, when they get downloaded, they arent >>> the real packages, they are umm.. >>> well, im not sure what they are.. >>> >>> ja...@zim /tmp $ cat spacewalk-koan-0.2.5-1.fc11.noarch.rpm >>> >>> >>> >>> >>> >>> >>> >>> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.or >>> g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> >>> >>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> >>> <head> >>> >>> >>> >>> >>> >>> <!-- enclosing head tags in layout_c.jsp --> >>> >>> <meta http-equiv="content-type" content="text/html;charset=UTF-8"/> >>> <title> >>> Spacewalk >>> >>> >>> - Sign In >>> >>> >>> </title> >>> <link rel="shortcut icon" href="/img/favicon.ico" /> >>> <link rel="stylesheet" href="/css/rhn-base.css" type="text/css" /> >>> <script src="/javascript/prototype-1.6.0.js" type="text/javascript"> >>> </scrip t> >>> <script src="/javascript/check_all.js" type="text/javascript"> >>> </script> >>> <!--[if IE]> >>> <link rel="stylesheet" type="text/css" >>> href="/css/rhn-iecompat.css" /> >>> <![endif]--> >>> >>> >>> </head> >>> <body onload=""> >>> <div id="wrap"> >>> <div class="wrap" id="top-wrap"> >>> >>> >>> >>> >>> >>> <!-- header.jsp --> >>> >>> >>> >>> <div id="header"> >>> <a href="http://spacewalk.redhat.com/" title="Visit >>> http://spacewalk.redha t.com/ for more >>> information"><img src="/img/logo_vendor.png" alt="Spacewalk proj >>> ect" id="rhLogo" /></a> >>> <a href="/" title="Spacewalk homepage"> >>> <img src="/img/logo_product.png" alt="Spacewalk" id="rhnLogo" /> >>> </a> >>> >>> >>> </div> >>> >>> <div id="navWrap"> >>> <div id="mainNavWrap"> >>> >>> >>> <ul id="mainNav"><li id="mainFirst-active"><a href="/" >>> class="mainFirstLin k">Sign In</a></li> >>> <li id="mainLast"><a href="/help/about.pxt" >>> class="mainLastLink">About</a></li> >>> </ul> >>> >>> </div> <!-- close div mainNavWrap --> >>> >>> </div> <!-- close div navWrap --> >>> >>> <div id="bar"> >>> <div id="systembar"> >>> <div id="systembarinner"> >>> <div> >>> >>> </div> >>> </div> >>> </div> >>> </div> <!-- end div bar --> >>> <!-- end header.jsp --> >>> >>> >>> </div> >>> <div class="wrap" id="bottom-wrap"> >>> <div id="content"> >>> <!-- MAIN table --> >>> <table width="100%" cellspacing="0"> >>> <tr> >>> <td class="sidebar"> >>> <!-- left nav --> >>> >>> >>> >>> <div id="sidenav"> >>> >>> >>> >>> >>> </div> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> <!-- TODO make this more generic --> >>> >>> >>> >>> >>> </td> >>> <td class="page-content"> >>> >>> >>> <html:xhtml/> >>> >>> >>> >>> <h1><img src="/img/rhn-icon-warning.gif"/>File Download Failed</h1> >>> >>> <p>The file you requested could not be downloaded, likely due to one of >>> the foll owing reasons:</p> >>> <ol> >>> <li>The url has expired.</li> >>> <li>The url has been modified.</li> >>> <li>The Spacewalk server does not have read permissions on the >>> specified f ile.</li> >>> </ol> >>> <p>Please revisit the page you recieved this url from to recieve a new >>> one.</p> >>> </td> >>> </tr> >>> </table> >>> <!-- END MAIN table --> >>> >>> >>> >>> >>> <div id="footer"> >>> Copyright © 2002-10 Red Hat, Inc. All rights reserved. >>> <a href="https://www.redhat.com/legal/privacy_statement.html">Privacy >>> statem ent</a> >>> :<a href="http://www.redhat.com/legal/legal_statement.html">Legal >>> statement</a> >>> :<a href="http://www.redhat.com/">redhat.com</a> >>> <div style="color: black">Spacewalk release<a >>> href="/rhn/help/release-not >>> es/satellite/index.jsp">1.0</a></div> >>> <p> >>> >>> >>> >>> >>> </p> >>> >>> >>> </div> >>> >>> <!-- Javascript --> >>> <script src="/javascript/check_all.js" type="text/javascript"></script> >>> >>> </div><!-- end content --> >>> </div><!-- end bottom-wrap --> >>> </div><!-- end wrap --> >>> </body> >>> </html> >>> ja...@zim /tmp $ >>> >>> regards, >>> Jason >>> >>> >>> _______________________________________________ >>> Spacewalk-list mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/spacewalk-list >>> >> >> > > -- > ================================================ > | Jason Welsh [email protected] | > | http://monsterjam.org DSS PGP: 0x5E30CC98 | > | gpg key: http://monsterjam.org/gpg/ | > ================================================ > > _______________________________________________ > Spacewalk-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list > -- RHCE#805007969328369
make_sat_client
Description: Binary data
init_sat_client
Description: Binary data
mksatclient5s-x86_64
Description: Binary data
clone_ak_and_kp_between_orgs.pl
Description: Binary data
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
