On Sun, May 1, 2016 at 7:48 PM, bishop bishop@platypus.bc.ca wrote:
Tory (and everyone else):
I think this is the code you want to mod, if my python's not laughable:
/usr/lib/python2.4/site-packages/cobbler/pxegen.py
214: try: 215: ipaddress = socket.gethostbyname_ex(blended["http_server"])[2][0] 216: except socket.gaierror: 217: ipaddress = blended["http_server"] 218: kickstart_path = "http://%s/cblr/svc/op/ks/system/%s" % (ipaddress, system.name)
I say cut that out or mod it, and the string will be preserved. Fix the DNS to match, and you're golden.
Thanks will take a look. I think the big deal is how to get the Next-server from the dhcp server. Cobbler and dhcp don't seem to talk to each other :) So the initial pxe boot, has next-server, which the server users to grab it's kernel files, and then there is another dhcp call, which is ultimately used to call the ks file. We really need to be able to capture the next-server variable between dhcp and cobbler, but I'm not versed enough to see how that would be made possible. I'm wondering if we don't use next-server (since both cobbler and dhcp use it) and we create a different variable inside the dhcp stanza, would that would allow us to grab it from cobbler (the above code).
Thanks again Bishop
Tory