Prelimiary results:
[root@hades cobbler]# cobbler profile dumpvars --name testcentos-i386 |
grep -A2 template_files
'template_files': {'/etc/cobbler/test': '/etc/template-test',
'/etc/cobbler/test2': '/etc/template_test2'},
'tftpd_bin': '/usr/sbin/in.tftpd',
[root@hades cobbler]# cat /etc/cobbler/test
this is a template for $name
[root@hades cobbler]# cat /etc/cobbler/test2
template #2 for $name
[root@hades cobbler]# wget -qO -
http://127.0.0.1/cblr/svc/op/template/profile/testcentos-i386/path/_etc_t...
this is a template for testcentos-i386
[root@hades cobbler]# wget -qO -
http://127.0.0.1/cblr/svc/op/template/profile/testcentos-i386/path/_etc_t...
template #2 for testcentos-i386
I'm still working on the snippet part, but I think this is a promising
start! I've pushed what I've done so far to github, so people can grab it
here for testing:
git://github.com/jimi1283/cobbler.git (template-files
branch).
James C.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.