> #
> # cannot find 'system' while searching for 'iface.system.netboot_enabled'
> #   File "/usr/lib/python2.5/site-packages/cobbler/templar.py", line 
> 115, in render
> #     data_out = str(t)
> #
> #   File "/usr/lib/python2.5/site-packages/Cheetah/Template.py", line 
> 982, in __str__
> #     def __str__(self): return getattr(self, mainMethName)()
> #
> #   File 
> "cheetah_DynamicallyCompiledCheetahTemplate_1238339475_34_49937.py", 
> line 243, in respond
> #
>
> Error templating file: /etc/dhcpd.conf
>
> and my template
>
> # more /etc/cobbler/dhcp.template
>
> # ******************************************************************
> # Cobbler managed dhcpd.conf file
> #
> # generated from cobbler dhcp.conf template ($date)
> # Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
> # in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
> # overwritten.
> #
> # ******************************************************************
>
> ddns-update-style interim;
>
> allow booting;
> allow bootp;
> #if $omapi_enabled
> omapi-port $omapi_port;
> #end if
>
> ignore client-updates;
> set vendorclass = option vendor-class-identifier;
>
> subnet 192.168.11.0 netmask 255.255.255.0 {
>      option routers             192.168.11.1;
>      option domain-name-servers 192.168.11.1;
>      option subnet-mask         255.255.255.0;
>      range dynamic-bootp        192.168.11.100 192.168.11.254;
>      filename                   "/pxelinux.0";
>      default-lease-time         21600;
>      max-lease-time             43200;
>      next-server                $next_server;
> }
>
> #for dhcp_tag in $dhcp_tags.keys():
>     ## group could be subnet if your dhcp tags line up with your subnets
>     ## or really any valid dhcpd.conf construct ... if you only use the
>     ## default dhcp tag in cobbler, the group block can be deleted for a
>     ## flat configuration
> # group for Cobbler DHCP tag: $dhcp_tag
> group {
>         #for mac in $dhcp_tags[$dhcp_tag].keys():
>             #set iface = $dhcp_tags[$dhcp_tag][$mac]
>     host $iface.name {
>         hardware ethernet $mac;
>         #if $iface.ip_address:
>             fixed-address $iface.ip_address;
>         #end if
>         #if $iface.subnet:
>             option subnet-mask $iface.subnet;
>         #end if
>         #if $iface.gateway:
>             option routers $iface.gateway;
>         #end if
>         #if $iface.system.netboot_enabled:
>             filename "$iface.filename";
>             ## Cobbler defaults to $next_server, but some users
>             ## like to use $iface.system.server for proxied setups
>             next-server $next_server;
>             ## next-server $iface.system.server;
>         #end if
>     }
>         #end for
> }
> #end for
>
> thanks
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

Look for .rpmnew files in /etc/cobbler.   (This is always a good thing 
to do after updating any RPM package)

It looks like you haven't updated the template yet, and Scott's speedups 
require some minor changes.   The templates are somewhat
less flexible now, but *tons* faster.   Yours looks rather stock, but if 
we need to add anything folks should let us know.

--Michael

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

Reply via email to