[Spacewalk-list] Kickstart Snippets in Post Scripts
David Rock
david at graniteweb.com
Mon Aug 9 03:59:12 UTC 2010
* Colin Coe <colin.coe at gmail.com> [2010-08-09 11:30]:
> On Sun, Aug 8, 2010 at 12:26 AM, David Rock <david at graniteweb.com> wrote:
<big snip>
> > If I use cobbler profile getks, should I see the snippets, or should I
> > see the expanded contents of the snippets? If I should see the expanded
> > code, what would cause me not to?
> >
>
> Sorry, David, I've never used cobbler directly so I can't comment.
>
Not a problem. I was only using it because it was referenced in the Red
Hat documentation as a way to troubleshoot. Based on what I found over
the weekend, the answer is that running "cobbler profile getks" returns
the generated final result. In my particular case, the original attempt
would show the $SNIPPET() lines in their unexpanded form because of the
implicit #raw/#end raw that is wrapped around the %post script. To get
the kickstart with _expanded_ $SNIPPETS, you need to check the template
checkbox on the script's edit page so that the cheetah parser can see
the snippet code.
I have a bit of a tirade about the details in another post ;-)
Thanks.
--
David Rock
david at graniteweb.com
More information about the Spacewalk-list
mailing list