this works fine but then when i do the cobbler sync i get
# cobbler sync
sync distro: CentOS-4.5-i386
sync distro: CentOS-4.5-xen-i386
sync profile: CentOS-4.5-i386
sync profile: CentOS-4.5-xen-i386
sync profile: centos
There appears to be an formatting error in the template file.
For completeness, the traceback from Cheetah has been included below.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line
372, in validate_kickstart_for_specific_profile
self.apply_template(kfile, meta, dest)
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line
624, in apply_template
data_out = str(t)
File "/usr/lib/python2.3/site-packages/Cheetah/Template.py", line 994,
in __str__
def __str__(self): return getattr(self, mainMethName)()
File
"cheetah_DynamicallyCompiledCheetahTemplate_119569 5012_33_33067.py",
line 169, in respond
File
"cheetah_DynamicallyCompiledCheetahTemplate_119569 5012_33_33067.py",
line 85, in __errorCatcher3
File "<string>", line 0, in ?
NameError: name 'harddrives' is not defined
Error while rendering kickstart file
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg to
/var/www/cobbler/kickstarts/centos/ks.cfg
Now if i escape out the part of
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg causing the issue ie.
%pre
# Determine how many drives we have
set $(list-harddrives)
let numd=$#/2
d1=$1
d2=$3
It still fails but when i look back at the
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg file the back slashes
have been removed!
Is there something like a master .ks file thats over writing bits of the
custom .ks ?
thanks
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools