-----Original Message-----
From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Jeff Schroeder
Sent: Thursday, June 04, 2009 11:21 AM
To: cobbler mailing list
Subject: Re: Setting Hostname via network_config snippet
On Thu, Jun 4, 2009 at 8:02 AM, Corey Garst <cgarst(a)tresys.com> wrote:
I've found this in /var/lib/cobbler/snippets/network_config:
#if $hostname != ""
#set $network_str = $network_str + " --hostname=" +
$hostname
How and where should I define $hostname in the web interface or CLI?
From the CLI you could do:
cobbler system edit --name bob
--hostname bob.yourcompany.fqdn
--
Jeff Schroeder
So this functionality is only good for system specifications?
I was hoping of finding a way to use "cblr`date +\%s | egrep -o
\".{4}\$\"`" as the hostname in a KS template so that systems utilizing the
PXE menu may receive a unique hostname.
-Corey Garst