compass-adapters/cobbler/snippets/kickstart_pre_anamon
Xicheng Chang f639a5d67f Separate cobbler IP from compass IP in cobbler snippets
Compass IP now is isolated so that during PXE process,
a pxe-server IP is available and DHCP will have its own
subnet and cobbler server owns the vip for that subnet.
This only partially closes bug #1393957, further change
will be maide in compass-core. So no "Closes-Bug" will
be added in the message.
Partial-bug: #1393957
Change-Id: I0d693f2958a33b5a093728dccf063e2114c7406b
2014-11-20 11:09:33 -08:00

10 lines
405 B
Plaintext

#if $str($getVar('anamon_enabled','')) == "1"
#if $getVar("compass_server", "") != ""
wget -O /tmp/anamon "http://$compass_server:$http_port/cobbler/aux/anamon"
python /tmp/anamon --name "$name" --server "$compass_server" --port "$http_port"
#else
wget -O /tmp/anamon "http://$server:$http_port/cobbler/aux/anamon"
python /tmp/anamon --name "$name" --server "$_server" --port "$http_port"
#end if
#end if