Thursday, August 23, 2012

SPARC Custom JumpStart DHCP

ISC-DHCP is an important part of a Custom JumpStart infra-structure.
Complementing the DHCP base configuration here's a sample for SPARC clients:
 
...
   
# Solaris 10 Custom JumpStart options for SPARC
option space SUNW;
 
option SUNW.SrootIP4 code 2 = ip-address;  # root server IP
option SUNW.SrootNM code 3 = text;         # root server name
option SUNW.SrootPTH code 4 = text;        # Client's root directory

  
option SUNW.SinstIP4 code 10 = ip-address; # install server IP
option SUNW.SinstNM code 11 = text;        # install server name
option SUNW.SinstPTH code 12 = text;       # install image path

  
option SUNW.SsysidCF code 13 = text;       # Base path to sysidcfg
option SUNW.SjumpsCF code 14 = text;       # Path to config files
   

...

# This group is to handle all sun4u (for example)
# 192.168.0.12 is the address of the SPARC Custom JumpStart server
group {

    class "vendor-classes" {
      match option vendor-class-identifier;
    }

    subclass "vendor-classes" "SUNW.Sun-Fire-V890";
    subclass "vendor-classes" "SUNW.SPARC-Enterprise";

    # and so on ...

    vendor-option-space SUNW;

    option SUNW.SrootIP4 192.168.0.12;
    option SUNW.SrootNM "
192.168.0.12";
    option SUNW.SrootPTH "/install/Solaris_10/Tools/Boot";

    option SUNW.SinstIP4
192.168.0.12;
    option SUNW.SinstNM "
192.168.0.12";
    option SUNW.SinstPTH "/install";

    option SUNW.SjumpsCF "
192.168.0.12:/jumpstart";

    use-host-decl-names on;

    host SPARC-client-1 {
      hardware ethernet XX:XX:XX:XX:XX:XX;
      fixed-address
192.168.0.215;
      
      # /config is the share
      # /config/SPARC-client-1 directory contains the sysidcfg
      option SUNW.SsysidCF "
192.168.0.12:/config/SPARC-client-1";
    }


    host SPARC-client-2 {
      hardware ethernet YY:YY:YY:YY:YY:YY;
      fixed-address
192.168.0.216;
      
      # /config is the share
      # /config/SPARC-client-2 directory contains the sysidcfg
      option SUNW.SsysidCF "
192.168.0.12:/config/SPARC-client-2";
    }

    
    # and so on ...
   
    # The JumpStart server for all other(?) purposes
    next-server 192.168.0.12;
}
    

Note: Compare with X86 Custom JumpStart DHCP.