Hello
I'm a heavy user of post Installation Code in the kickstart File.
Due to multiple profiles requirements , I've decided to devide my post
installation code into various cobbler SNIPPETS.
The problems I'm having is that whenever I try to use cheetah(python)
#if-else macros the snippet doesn't get translated at all.
( though If I put syntax errors and do cobbler profile getks it would
scream about parsing them.
For example:
my kickstart is centos.ks.inside , it has the following snippet :
$SNIPPET('add_mounts')
/var/lib/cobbler/snippets/add_mounts contains:
#if profile == 1
echo "nfs.servers:/mount_1 mount_1 nfs defaults 0 0" >> /etc/fstab
#end if
Using it results and issuing cobbler profile getks ... results in just
"$SNIPPET('add_mounts')" being written to stdout , instead of the
snippet content
however , if I remove the #if macro , I get :
echo "nfs.servers:/mount_1 mount_1 nfs defaults 0 0'
as desired ...
Cobbler Version : 2.0.11
OS-Version : CentOs 5.5
Kernel Version : 2.6.18-194.3.1
Python Version : 2.4.3
Any help is appreciated ...
Thanks
--
| Idan Shinberg | IT Manager |
Superfish.com | idan(a)superfish.com
I discover products using Superfish visual search.