When i do the following
#raw
VENDOR=`dmidecode | grep Manufacturer | head -1 | awk {'print$2'}`
if [ "$VENDOR" = "Dell" ] ; then
echo "ttyS1" >> /etc/securetty
if grep -q ttyS1 /etc/inittab; then
true
else
echo s0:2345:respawn:/sbin/agetty -L 57600 ttyS1 >>
/etc/inittab
fi
else
echo "ttyS0" >> /etc/securetty
if grep -q ttyS0 /etc/inittab; then
true
else
echo s0:2345:respawn:/sbin/agetty -L 9600 ttyS0 >>
/etc/inittab
fi
fi
#end raw
but this breaks the rendering
# *** ERROR ***
#
# 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.
#
#
# 'ascii' codec can't decode byte 0xc2 in position 2070: ordinal not in
range(128)
# File "/usr/lib/python2.3/site-packages/cobbler/templar.py", line
115, in render
# data_out = t.respond()
#
# File
"cheetah_DynamicallyCompiledCheetahTemplate_1244634236_98_37901.py",
line 529, in respond
#
# File "/usr/lib/python2.3/site-packages/Cheetah/DummyTransaction.py",
line 32, in getvalue
# return ''.join(outputChunks)
#
<pre>
Mod_python error: "PythonHandler services"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/var/www/cobbler/svc/services.py", line 98, in handler
return apache.HTTP_ERROR
AttributeError: 'module' object has no attribute 'HTTP_ERROR'
</pre>
i would have thought this was OK within the #raw ?
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler