On Nov 22, 2012, at 12:21 PM, Nan Liu <
n...@puppetlabs.com> wrote:
>
> The current module can be broken down further. I think there's some limitations that require tftp and razor to reside on the same system and I don't know that has been resolved.
>
Actually, with the recent changes to the Microkernel (v0.9.2.1 and later) I think we've removed the requirement that the Razor server and the tftp server be co-located. The Microkernel now searches for the Razor server using several sources (previously, it assumed that the next-server IP address that was returned from the DHCP server was the IP address of the Razor server):
First, it searches the boot command line to see if there was a parameter included in the boot command line that indicates the location of the razor server (this would require a change to how the Razor server generates it's iPXE boot script to take advantage of, but it's there if we want to make that change). The Microkernel first looks for a boot command line parameter that looks something like "razor.ip=1.2.3.4". If it finds a parameter like that, then that's what it uses as the IP address of the Razor server. If it doesn't find that parameter, then it looks for a boot command line parameter that looks something like "razor.server=
some.server.name". If it finds that parameter, then it tries to resolve that hostname (
some.server.name) on the local network in order to obtain the IP address of the Razor server.
If neither of those parameters are found, it then tries to resolve the hostname "razor" on the local network. If it is able to resolve that hostname (razor) on the local network then it uses the resulting IP address (if that hostname is resolved successfully) as the IP address for the razor server.
If it doesn't find the an IP address for the Razor server using any of the methods outlined above, the Microkernel will then (and only then) take the "next-server" IP address that was returned from the DHCP server and use that as the IP address for the Razor server. It is only in this "last resort" scenario that you MUST co-locate the Razor server with the TFTP server...
Does that make sense?