Hi Mike,

So, are you just unsure of how to template or how to setup the templates?

You can use the cheetah templating within each template and have one template 
cover multiple hosts. So, if you had a template located on the cobbler server 
at /srv/templates/etc_resolv_conf you can use cobbler templates do designate 
different DNS servers per host/group/etc.

#set $dns1 = $getVar(‘$dns1’, 127.0.0.1)
#if $hostname == “SomeHost”
nameserver $dns1
#else
nameserver 8.8.8.8
#end if

So, if you set this as 
cobbler profile edit --name=foo 
--template-files="/srv/templates/etc_resolv_conf=/etc/resolv.conf
Cobbler will set that file for you.

Does this help? It’s a very basic example.

HTH.

Cheers,
Harry

On Jun 30, 2014, at 8:07 AM, Michael Tiernan <[email protected]> wrote:

> On 6/30/14 7:59 AM, Harry Hoffman wrote:
>> Hi,
>> Straight from the manual...
> Grr... :)
> 
> Okay, let me reread this and see what I can learn.
> 
> Thanks for letting me know.
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://lists.fedorahosted.org/mailman/listinfo/cobbler

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

Reply via email to