compass-adapters/cobbler/snippets/kickstart_pre_anamon
xiaodongwang 91530187f0 add user configuration and fix some bugs
Change-Id: Iee9b4550504a8918824f3260e7622788e5feb098
2015-03-08 23:39:19 -07:00

10 lines
416 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