[Spacewalk-list] what sets the kickstart hostname URL at build time

Matthew Darcy MDarcy at sch-group.net
Mon May 23 15:09:59 UTC 2011


Michael, 

you appear to becoming my personal support unit, thank you.

The pre script was the option I was going for, I'm curious to have you've done this specfically as each time I try it, anaconda panics and fails on the install.

changing the server to the FQDN in the cobbler settings file makes sense in my head, but in the actual kickstart file it still keeps the server as "server" not "server.fqdn", do I have to regenerate the kickstart config, I'd have expected this to be dynamic.

Thanks,

Matt.


________________________________________
From: spacewalk-list-bounces at redhat.com [spacewalk-list-bounces at redhat.com] on behalf of Michael Gliwinski [Michael.Gliwinski at henderson-group.com]
Sent: 23 May 2011 12:55
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] what sets the kickstart hostname URL at build time

On Monday 23 May 2011 11:51:09 Matthew Darcy wrote:
> 1.) what sets the hostname in the kickstart file, how can I force it to be
> spacewalk01.domain.com rather than spacewalk01

You can force it by setting 'server' option in /etc/cobbler/settings (IIRC).

> 2.) using the kickstart network options can I set the default dns search
> names?

It appears there's no way to do that (at least in EL5).  What I do is I set
IP, netmask, gateway, nameservers and hostname using the network line in ks,
and I set search and domain in resolv.conf with this in a %pre script:

echo domain $name_servers_search[0] >> /etc/resolv.conf
echo search $str.join(' ', $name_servers_search) >> /etc/resolv.conf

(note I use $name_servers_search variable here which I set using cobbler)

I also have something similar in a %post script as I don't think
/etc/resolv.conf is getting copied into new sysroot (had some problems with
that).


--
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support at henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




More information about the Spacewalk-list mailing list