Hi,
I've got a problem with cobbler (1.2.4) with the kickstart templating
using cheetah and the use of variables in included files. This used to
work (in pre 1.0 cobbler versions). This is the code in the kickstart
file itself :
#set $loc = $getVar("loc","defaultplace")
#if $loc == "defaultplace"
SNIPPET::varsdefault
#else if $loc == "otherplace"
SNIPPET::varsotherplace
#end if
This is how such a snippet looks like :
# Variables specific for the setup in default loc
#set $dns1 = "X.X.X.X"
#set $dns2 = "X.X.X.X"
#set $nfsserver = "X.X.X.X"
#set $ntp = "hostname.domain"
#set $smtp = "hostname.domain"
#set $funcserver = "hostname.domain"
But using these variables inside the main kickstart or other snippets
does not work, they are not replaced and stay as they are in the
original files. For example :
echo "nameserver $dns2" >> /etc/resolv.conf
Stays exactly like that in the rendered kickstart file for the host in question.
As a test I replace the line "SNIPPET::varsotherplace" by "#include
'/var/lib/cobbler/snippets/varsotherplace'". But that did not change
the result.
Anyone any idea what is going on here ? I've looked that the changes
on the wiki but I did not see anything like this.
Thanks,
Tim
--
Tim Verhoeven - [EMAIL PROTECTED] - 0479 / 88 11 83
Hoping the problem magically goes away by ignoring it is the
"microsoft approach to programming" and should never be allowed.
(Linus Torvalds)
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler