Michael DeHaan wrote:
> James Cammarata wrote:
>> Prelimiary results:
>>
>> [EMAIL PROTECTED] 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',
>> [EMAIL PROTECTED] cobbler]# cat /etc/cobbler/test
>> this is a template for $name
>> [EMAIL PROTECTED] cobbler]# cat /etc/cobbler/test2
>> template #2 for $name
>> [EMAIL PROTECTED] cobbler]# wget -qO -
>> http://127.0.0.1/cblr/svc/op/template/profile/testcentos-i386/path/_etc_template-test
>>
>>
>> this is a template for testcentos-i386
>> [EMAIL PROTECTED] cobbler]# wget -qO -
>> http://127.0.0.1/cblr/svc/op/template/profile/testcentos-i386/path/_etc_template__test2
>>
>>
>> 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.
>>
>>
>
> Outstanding, I'll take a look at this shortly.
>
> For those that want to browse diffs, see
> http://github.com/jimi1283/cobbler-template-files/commits/template-files
>
> The significance of this is fairly major -- it makes cobbler a generic
> templating system for configuring systems, taking it well beyond
> just what kickstart can do.
>
> An additional idea for extension, brought up during the talk about the
> DISA STIG stuff, would be the idea of adding code to koan so it could
> pull
> down updated template-files for the individual systems.
>
> koan --server=cobbler.example.org --system=foo --update-files
>
> I think that would be incredibly awesome because then, if you didn't
> want a heavyweight CMS (and an additional client-side daemon), you'd
> have some very good workings of a system to deploy template files and
> also handle the install time cases.
>
> This would basically be a Cobbler read-only XMLRPC call plus some well
> placed wget's, optionally with some code to backup files out of the
> way first.
>
> --Michael
>
>
>
>
>
I'll do the koan part.
Very neat idea... could be the biggest cobbler feature in a loooooong
time :)
--Michael
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler