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