[et-mgmt-tools] passing list/dictionary in ksmeta

Hennessey Daniel Daniel.Hennessey at aah.co.uk
Thu Jul 19 16:04:38 UTC 2007


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
************************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20070719/be3c7cc0/attachment.htm>


More information about the et-mgmt-tools mailing list