passing list/dictionary in ksmeta

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Message
Hey people,
 
I am trying to use the ksmeta="" construct to pass a list of dictionaries through to the kickstart file where I am using a cheetah "#for $var in $vars" loop to unravel them.
 
Is this possible?
 
TIA
 
Dan
 
 
PS this is what I am trying to do;
 
cobbler profile edit --name=RHEL44-ORACLE10G-i386 --ksmeta="nics=[{ 'dev': 'eth0', 'bootproto': 'dhcp'},{ 'dev': 'eth1', 'bootproto': 'dhcp'}]"
 
and the kickstart file has the following snippet in it;
 
#for $nic in $nics
$nic_string = "network"
#for $key, $value in $nic.items()
$nic_string = $nic_string + " --%s %s" % ( $key, $value )
#end for
#end for

************************************************************************

DISCLAIMER

The information contained in this e-mail is confidential and is intended

for the recipient only.

If you have received it in error, please notify us immediately by reply

e-mail and then delete it from your system. Please do not copy it or

use it for any other purposes, or disclose the content of the e-mail

to any other person or store or copy the information in any medium.

The views contained in this e-mail are those of the author and not

necessarily those of Admenta UK Group.

Admenta UK plc is a company incorporated in England and Wales

under company number 3011757 and whose registered office

is at Sapphire Court, Walsgrave Triangle, Coventry CV2 2TX

************************************************************************

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux