Friday, July 6, 2012

ISC-DHCP AI configuration

ISC-DHCP is an important part of an AI (Automated Installer) infra-structure.
Complementing the ISC-DHCP baseline configuration here's a sample for X86 clients:
 
...

group {
  
  host XXXXXXXXXXXX { 
    hardware ethernet XX:XX:XX:XX:XX:XX;
    filename "01XXXXXXXXXXXX";
    fixed-address 192.168.0.210;
  }

  host YYYYYYYYYYYY {
    hardware ethernet YY:YY:YY:YY:YY:YY;
    filename "01YYYYYYYYYYYY";
    fixed-address 192.186.0.211;
  }

  # The unspecified X86 clients use the defaults (catch-all)
  class "PXEBoot" {
    match if 
    (
      substring(option vendor-class-identifier, 0, 9) 
      "PXEClient"
    );
    filename "default-i386/boot/grub/pxegrub";
  }

  # The AI server from where to retrieve filename
  next-server 192.168.0.11;

}
   
Note: The only difference for SPARC would be the "catch-all" class.