[Spacewalk-list] Code Snippet Question
Luc de Louw
luc at delouw.ch
Fri Apr 13 18:24:07 UTC 2012
On 13.04.2012 20:10, Wojtak, Greg (Superfly) wrote:
> I'm attempting to use snippets in my kickstarts for the first time and I'm running into some problems. More specifically I am having trouble using ksmeta variables in my snippets in my %post scripts.
>
> We've got a few profiles that will share the same %post scripts and I wanted to use snippets to be able to update this script in one place. So I create the system record with cobbler with something like:
>
> cobbler system add … --ksmeta="env=test" …
>
> In my snippet, I try to do something like:
>
> #raw
> …
> echo $env
> …
> #endraw
Cobbler variables are AFAIK not available inside #raw tags.
HTH
Luc
More information about the Spacewalk-list
mailing list