[Spacewalk-list] how to register kickstarted systems into spacewalk

Josh.Mullis at cox.com Josh.Mullis at cox.com
Sat Nov 21 16:33:25 UTC 2009


Rob,

You can accomplish this by a  simple script in the pre section...


############
%pre
############

#!/bin/bash

echo -n "Enter hostname: "
read KS_HOSTNAME






... And in the "--hostname" flag of the network line put our variable:

--hostname $KS_HOSTNAME



Let me know if this works.

-Josh


----- Original Message -----
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com>
To: spacewalk-list at redhat.com <spacewalk-list at redhat.com>
Sent: Sat Nov 21 11:07:30 2009
Subject: RE: [Spacewalk-list] how to register kickstarted systems into	spacewalk

I haven't had a great deal of luck with that other than editing the .ks file each time I build a machine and changing this line:

network --device eth0 --bootproto static --hostname machine.domain.com

Not bad for doing one machine at a time but, not good for doing a bunch at one time.


-----Original Message-----	
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of rob morrien
Sent: Saturday, November 21, 2009 11:00 AM
To: spacewalk-list at redhat.com
Subject: RE: [Spacewalk-list] how to register kickstarted systems into spacewalk

Rich,

i will test this as soon as possible

but i want to give every machine an unique hostname

regards rob

> I have added this to my kickstart file for all our production machines.
> I just add the following to %post section:
>
> ##Add machine to Spacewalk server
>
> rhnreg_ks --bla bla bla
> yum update -y
>
> That way when it reboots, it is registered and fully updated.
>
>
>
> Rich
>
>
> -----Original Message-----
> From: spacewalk-list-bounces at redhat.com
> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of rob morrien
> Sent: Saturday, November 21, 2009 10:30 AM
> To: spacewalk-list at redhat.com
> Subject: [Spacewalk-list] how to register kickstarted systems into
> spacewalk
>
> Hello to all,
>
>
> i kickstarted some systems from spacewalk.
>
> How can i register them automaticly into spacewalk?
>
>
> regards rob
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>


_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list