<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 1, 2014 at 4:16 PM, Glennie, Jonathan - 0443 - MITLL <span dir="ltr"><<a href="mailto:jrglenni@ll.mit.edu" target="_blank">jrglenni@ll.mit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hello All-<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">My apologies if this has been covered somewhere before, but I’m trying to determine the best method of automating spacewalk client registration in a virtual environment and surprisingly enough I haven’t found much.  Right now, we are using VMware CentOS 6 templates as base images for client machines.  We have a handful of scripts set up to automate other tasks such as hostname/IP changes, but I’m not sure the best way to handle spacewalk registration.  Has anyone set this up before that may have some experiences to share? <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I don’t think we want to go down the road of using kickstart as most of the configuration we need is already done on the template, unless there is a “light” way of using it to run simple post install scripts?  And I’m pretty sure we can’t register the template to spacewalk otherwise we would have to deal with duplicate systems showing up in the inventory, or at least I think we would.  I’m leaning towards using a template with the necessary packages installed but not registered to spacewalk, with a script in rc.local which will check to see if the machine is registered to spacewalk (not sure how yet) and then run the rhnreg command if not.  Thoughts anyone?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks in advance,<u></u><u></u></p><p class="MsoNormal">-Jon<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>

Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div><div class="gmail_extra">Hey Jon,<br>Nothing will be automated if going the vmware route. The only automated 
way would be to use redhats virtualization software, KVM. I built a bash
 program that automates the process of installation and registration. It
 has the ability to register to various channels by answering questions,
 etc. <br><br>Your best bet would be to just generate a simple startup 
script that prompts you for input. The possibilities are endless for 
this kind of method. You will build the last part of the script to remove itself from startup only if it successfully registers. <br><br></div><div class="gmail_extra">--Justin<br></div></div>