Is there a way to do the following:
cobbler system edit --name=foo --ksmeta="loc=bar booter=host.$loc"
So the kickstart file would give
$loc = bar $booter = host.bar
If you do what I showed above, you get
$loc = bar booter=host.$loc
Paul
On 07/22/2009 08:17 PM, Paul Company wrote:
Is there a way to do the following:
cobbler system edit --name=foo --ksmeta="loc=bar booter=host.$loc"
So the kickstart file would give
$loc = bar $booter = host.bar
If you do what I showed above, you get
$loc = bar booter=host.$loc
Paul _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
No, it is not, we only run Cheetah through one pass, because two would break things in evil nasty ways (TM) and require double escaping in some places (the horror!). So in your template, it's easier to just do:
booter=host.${loc}
If that's not quite complex enough (depending on your usage) you could also do stuff with Cheetah if statements to decide what the prefix is, etc, or could use multiple variables together, as needed. There's really a lot you can do with it, but no, no double nesting within Cobbler itself.
--Michael
cobbler@lists.fedorahosted.org