Hi all,
We have an issue which Im certain that you guys have a clever answer to.
We are using multihoming (multiple VLANs) and today have to do a 'cobbler system edit .... --server=' for each added node to have it talking the cobbler server on the correct network. When we add SLES based profiles we have to specify '--kopts=...install= http://ip/cobbler/ks_mirror/sles11...' for each profile.
The issues we have are:
* Our default RHEL6 based Cobbler server does not provide a default gateway to the clients. I don't know how to solve it either. - See our dhcp.template file below
* Executing 'cobbler system edit...--server=...' updates 'autoyast=...' but not 'install=...'. Why?
Is there anyway without directly modifying the tftp files to get this working smoothly?
For our setup, it had helped alot if Cobbler had direct support for multihoming without gluing it together yourself.
As always, I appreciate the help from you guys...
Rgds, Daniel
/etc/cobbler/dhcp.template ================================== ddns-update-style interim;
allow booting; allow bootp;
ignore client-updates; set vendorclass = option vendor-class-identifier;
subnet NETWORK netmask NETMASK { option routers ROUTER_IP; option domain-name-servers DNS1,DNS2; option subnet-mask NETMASK; filename "/pxelinux.0"; default-lease-time 21600; max-lease-time 43200; next-server COBBLER_SERVER_IP; }
... MORE SUBNET DECLARATIONS ... #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.hostname: option host-name "$iface.hostname"; #end if #if $iface.subnet: option subnet-mask $iface.subnet; #end if #if $iface.gateway: option routers $iface.gateway; #end if filename "$iface.filename"; ## Cobbler defaults to $next_server, but some users ## may like to use $iface.system.server for proxied setups ##next-server $next_server; ##Next-server $iface.next_server; } #end for } #end for
==================================
On Tue, 31 May 2011 13:38:24 +0200, Daniel Kertby kertby@gmail.com wrote:
Hi all,
We have an issue which Im certain that you guys have a clever answer to.
We are using multihoming (multiple VLANs) and today have to do a 'cobbler system edit .... --server=' for each added node to have it talking the cobbler server on the correct network. When we add SLES based profiles we have to specify '--kopts=...install= http://ip/cobbler/ks_mirror/sles11...' for each profile.
The issues we have are:
- Our default RHEL6 based Cobbler server does not provide a default gateway
to the clients. I don't know how to solve it either.
- See our dhcp.template file below
I think you want --gateway option to system edit and add. This will set the default gateway for a host.
- Executing 'cobbler system edit...--server=...' updates 'autoyast=...' but
not 'install=...'. Why?
That might be a bug, but you might also want to look at doing a 'cobbler sync' to be sure. The 'install=...' line is in the tftp pxelinux.cfg files? Those should get updated at light sync time, whenever the host change gets commited. Not sure why it wouldn't. I'm going to guess a bug in the append_line code for SLES.
Is there anyway without directly modifying the tftp files to get this working smoothly?
I'd think fixing the bug would fix your problem. If I could get a hold of some pxelinux.cfg files and the systems that they were generated from I should be able to track things down.
cobbler@lists.fedorahosted.org