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: [email protected] <[email protected]> To: [email protected] <[email protected]> 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: [email protected] [mailto:[email protected]] On Behalf Of rob morrien Sent: Saturday, November 21, 2009 11:00 AM To: [email protected] 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: [email protected] > [mailto:[email protected]] On Behalf Of rob morrien > Sent: Saturday, November 21, 2009 10:30 AM > To: [email protected] > 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 > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list > > _______________________________________________ > Spacewalk-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list > _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
