Is there a way to include the proxy in /etc/cobbler/dhcp.template so
that it gets rendered into the finished dhcpd.conf?
Here's what I'm trying to produce:
We need to cobbler-boot systems worldwide, and we have squid servers
located around the globe to help cache. We want to have our systems
know about these squid proxies during their setup so that their
dhcpd.conf entries look like below. We also push the 01-* file to
the proxy so that it can be picked up from there during the pxe
boot.
:
:
subnet 192.168.19.0 netmask 255.255.255.0 {
option routers 192.168.19.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.19.240 192.168.19.250;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.1.45; <- This is our
cobbler server
}
:
group {
host generic23 {
hardware ethernet 01:02:03:04:05:06;
fixed-address 192.168.19.149;
option domain-name-servers 192.168.19.2;
option host-name "bs101.foo.com";
option routers 192.168.19.1;
filename "/pxelinux.0";
next-server 192.168.19.107; <- This is the squid
proxy
}
:
}
Done this way, when the installation completes successfully, Cobbler
erases the host entry and the system goes back to using the master
next-server value, bypassing the proxy.
I've tried using $proxy, but that doesn't work. Is there a variable
available to me within dhcpd.template to insert this? I can see that
it's known using "cobbler system dumpvars --name=bs101" but I can't
figure out how to get at it.
Thanks!