On Tue, 10 Aug 2010 16:47:36 -0500, <[email protected]>
wrote:
> Hey
> 
> I am wondering if anybody can give me a suggestion as to which way is
> best to proceed.
> I have a server on a multi-segment network. I.E. it has a lot of VLANs
> connected to it.
> On this server I installed cobbler. What I want to do is have each
> server that needs to be installed automatically pick the right
> pxe/kickstart options.
> I am not sure if there is a way to script this, without having a profile
> for each segment. I would prefer to avoid that and have a single "if
> then" structure in a template for the pxe menu and kickstart.
> 
> Is there any variable that cobbler has an access to that I could use to
> do this? (for instance ability to read the IP of the host).

Are you using tagged vlans?  Personally, I would not set cobbler up that
way, as it becomes a maintenance headache.  If you're using Cisco hardware,
you can configure your switches to use the "ip helper" command to forward
layer 2 traffic to a layer 3 host, so you can do things like DHCP and PXE
across segments.

In your case, if you're using tagged vlans, you'll have to create a vlan
interface for every vlan you want to build things on, and configure dhcpd
networks for each of them in dhcpd.template (also add the vlan interface to
your dhcpd settings, /etc/sysconfig/dhcpd if you're using RHEL or similar).
 Then you can use the dhcp tags variable to pin systems to a specific dhcp
network.  The down side is, everytime you add a new network, you have to
update your dhcpd.template, settings, etc., thus the maintenance
headache.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

Reply via email to