[Spacewalk-list] Kickstart Template Issues

Raymond Setchfield raymond.setchfield at gmail.com
Fri Aug 24 12:23:57 UTC 2018


Hi Colin

Thank you for your assistance on this. Yes, its all very fustrating,
especially when you can't figure out what is actually wrong :)

Are you suggesting that removing $() and replacing it with just ``?

Thanks

Ray

On Fri, Aug 24, 2018 at 5:59 AM Colin Coe <colin.coe at gmail.com> wrote:

> Hmm, I just got this in one of my kickstart profiles when using
> "$(something)".  If I change it to "`something`" then the error goes away...
>
> On Fri, Aug 24, 2018 at 8:34 AM Colin Coe <colin.coe at gmail.com> wrote:
>
>> Historically, I see this when I comment out some shell script, like:
>>
>> #if sometest
>>
>> The fix to the above is to a space between the hash and 'if' like below:
>>
>> # if sometest
>>
>>
>>
>> I couldn't see anything obvious so I created a new kickstart profile on
>> my Satellite v5.8 system using your post script.  There were no templating
>> errors.
>>
>> Sorry, I know this isn't that helpful...
>>
>> CC
>>
>>
>> On Thu, Aug 23, 2018 at 6:43 PM Raymond Setchfield <
>> raymond.setchfield at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I am experiencing some problems around the kickstart templates, and I am
>>> attempting to following the guidelines, but it looks like I am still
>>> running into problems.
>>>
>>> I am receiving an error message of;
>>> # There is a templating error preventing this file from rendering
>>> correctly.
>>> #
>>> # This is most likely not due to a bug in Cobbler and is something you
>>> can fix.
>>> #
>>> # Look at the message below to see what things are causing problems.
>>> #
>>> # (1) Does the template file reference a $variable that is not defined?
>>> # (2) is there a formatting error in a Cheetah directive?
>>> # (3) Should dollar signs ($) be escaped that are not being escaped?
>>> #
>>> # Try fixing the problem and then investigate to see if this message goes
>>> # away or changes.
>>> #
>>> #
>>> # unexpected EOF while parsing (<string>, line 1)
>>> #   File "/usr/lib/python2.7/site-packages/cobbler/templar.py", line
>>> 142, in render
>>> #     data_out = t.respond()
>>> #
>>> #   File
>>> "cheetah_DynamicallyCompiledCheetahTemplate_1535020182_58_55849.py", line
>>> 445, in respond
>>> #
>>> #   File
>>> "cheetah_DynamicallyCompiledCheetahTemplate_1535020182_58_55849.py", line
>>> 77, in __errorCatcher2
>>> #
>>>
>>> Is it possible someone could please have a look at the kickstart
>>> template I am attempting to use, or could someone please share a template
>>> which they are using which has variables etc. So at least I can take a look
>>> at possible issues of where I am going wrong?
>>>
>>> Many Thanks
>>>
>>> Ray
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180824/233491c5/attachment.htm>


More information about the Spacewalk-list mailing list