[cobbler] snippet issue

James Cammarata jimi at sngx.net
Fri Mar 22 19:45:59 UTC 2013


On Fri, Mar 22, 2013 at 2:07 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL
TECHNOLOGY SOLUTIONS INC] <stuart.j.newman at nasa.gov> wrote:

> RHEL 6.4 Cobbler 2.2.3****
>
> ****
>
> I have a kickstart as follows:****
>
> ** **
>
> # this file intentionally left blank****
>
> # admins:  edit it as you like, or leave it blank for non-interactive
> install****
>
> $SNIPPET('testit')****
>
> ****
>
> The snippet is as follows:****
>
> ** **
>
> #set $snipname='SDO_' + $stringname + '_snippet'****
>
> ** **
>
> When I try to generate the kickstart from a profile, I get****
>
> ** **
>
> # this file intentionally left blank****
>
> # admins:  edit it as you like, or leave it blank for non-interactive
> install****
>
> $SNIPPET('testit')****
>
> ** **
>
> What I doing wrong that the snippet is not being executed?****
>
>
>
Most likely, you're not setting $stringname correctly.  You should have the
following above the shown #set line:

#set $stringname = $getVar("stringname","nostringnameset")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20130322/18c195a1/attachment.html>


More information about the cobbler mailing list