Going back to the module we have and getting it operational I must admit I am struggling with the scripting.
If each client is going to be individually assigned then in the dhcp we need something like this.
host fix0 # blauTC
{
hardware ethernet 00:40:f4:8a:22:ae;
fixed-address 192.168.0.55;
next-server 192.168.0.251;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}
I really like the addition of profile names as this gives the choice of which images and doesn't limit you with the default 4.
What I can't work out is how to get the profile and return its network objects.
Also it did occur to me that some check needs to be done that a network object isn't referenced several times.
Also I just wondered if this is slightly the wrong way round?
Should we have a list of network objects that you can apply a profile to, rather than a list of profiles that you can apply network objects to?
As you could declare a network object several times?
If you don't want to use mac address's then its the same thing just apply the above root-path option and filename to the scope.
I did have a go at creating several vlan interfaces but it seems I have killed my server as it just hung for ages and then came up with a samba error.
I have never tried a multiple lan arrangement before and I just don't know if you can. I am going to do a reinstall. Set my vlans and then try to install samba. I will get back to you on that one.
It would be great to have multiple dhcp scopes with the pxe boot options. Also in the dhcp for that scope it would be really good to have a profile option. Also the next server options rather it being a global dhcp variable it would be much better to define it on each scope and the same for a profile if you are doing it by range. I guess the only thing I have to check is the host name.
That way you could provide another zentyal server yes you would have to create the profile twice but you could have several servers serving images and applications. Not elegant but it would work.
So I am stuck at the moment trying to work out how to get the profile information to write out the dhcp.conf.
I did find this about host name assignment
ddns-hostname = pick (
host-decl-name,
option host-name,
# dhcp-192-168-3-11
concat ("dhcp-", binary-to-ascii (10, 8, "-", leased-address))
);
Then I found
http://sourceforge.net/apps/mediawiki/ltsp/index.php?title=DHCPwhich has a whole section on it.