On Sat, 04 Oct 2008 20:52:15 -0500, James Cammarata <[EMAIL PROTECTED]> wrote: > 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).
Done! Currently, this is working in the following manner: If the destination path is a relative path, sync will write the file to the /var/www/cobbler/rendered directory. If the destination path is absolute, it won't. Both will be available through the mod_python services as cblr/svc/op/template/profile/$name/path/$template_path, where template path is translated in the following manner: 1) Underscores are converted to a double underscore 2) /'s are converted to underscores. The sample.ks has a new line in it: $kickstart_template_files, which generates output like this: # Kickstart template files wget "http://192.168.1.109/cblr/svc/op/template/profile/testcentos-i386/path/_etc_template__test2" --output-document="/etc/template_test2" wget "http://192.168.1.109/cblr/svc/op/template/profile/testcentos-i386/path/_etc_template-test" --output-document="/etc/template-test" And that's about it! Comments are appreciated. James C. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
