On 4/19/2011 11:22 AM, Scott Henson wrote:
On Tue, 19 Apr 2011 10:24:34 -0700, Bryson Lee<[email protected]>  wrote:
Hi,

Is there a way to get Cobbler (2.0.9) to expand variable references in a
system's kopts setting?  I have number of systems that are configured
with static IP addresses, and I'd like to have the network settings
inserted into the "append" line in the Cobbler-generated yaboot.conf files.

I found Ticket #21, closed years ago, that states that an
'@@variablename@@' syntax is honored in templated contexts, but when I
tried it, the '@@var@@' references showed up unchanged in the
/var/lib/tftpboot/etc/xx-xx-xx-xx-xx-xx file.

Has another syntax superseded '@@var@@' for this purpose?

I believe if you do 'cobbler system edit --name FOO --static True' you
should get what you want.


That doesn't appear to be the case; here's the yaboot.conf that gets generated for one of the systems in question:

# yaboot.conf generated by cobbler
init-message="Cobbler generated yaboot configuration.\nHit <TAB> for boot options"
timeout=80
delay=100
default=linux

image=/images/fedora10-ppc64/vmlinuz
    label=linux
    initrd=/images/fedora10-ppc64/ramdisk.image.gz
append=" ksdevice=bootif lang= console=hvc0 text serial kssendmac ks=http://x.x.x.x/cblr/svc/op/ks/system/ps710-01";

and (parts of) the corresponding system record:

[root@gw2 etc]# cobbler system report --name ps710-01
Name                           : ps710-01
Comment                        :
Gateway                        : x.x.x.1
Hostname                       : ps710-01
...
IP Address                     : x.x.x.251
Static                         : True
Subnet                         : 255.255.255.0

Thanks,

-Bryson

<<attachment: lee_bryson.vcf>>

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to