Howdy, 'yall. I'm having some trouble using the new templating support 
in the devel branch (77f5e38b097e79d5d0de3e994dad54f381bb706f).

$ BASEURL=http://localhost/cblr/svc/op/template
$ cobbler profile edit \
 > --name=CentOS-5.1-x86_64 \
 > --template-files=/local/templates/racadm.ini=racadm.ini
$ cobbler sync
$ cobbler system dumpvars --name=00:16:3e:67:2b:43 | grep template_files
  'template_files': {'/local/templates/racadm.ini': 'racadm.ini'},
$ curl ${BASEURL}/system/00:16:3e:c9:95:47/path/racadm.ini
# template path not found for specified profile
$ curl ${BASEURL}/profile/CentOS-5.1-x86_64/path/racadm.ini
# template path not found for specified profile

Since we're checking in cobbler.api for template_results.has_key(path), 
I made the error a bit more verbose, printing path.keys() as part of the 
error message, and attempting other variants:

$ curl ${BASEURL}/system/00:16:3e:c9:95:47/path/racadm.ini
# template path not found for specified system (options: [])
$ curl ${BASEURL}/profile/CentOS-5.1-x86_64/path/racadm.ini
# template path not found for specified profile (options: 
['/var/www/cobbler/rendered/racadm.ini'])
$ curl 
${BASEURL}/profile/CentOS-5.1-x86_64/path//var/www/cobbler/rendered/racadm.ini
# template path not found for specified profile (options: [])
$ curl 
${BASEURL}/profile/CentOS-5.1-x86_64/path/_var_www_cobbler_rendered_racadm.ini
# template path not found for specified profile (options: [])

Any hints/pointers?

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to