aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/kickstart_pre_anamon
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/cobbler/snippets/kickstart_pre_anamon')
-rw-r--r--deploy/adapters/cobbler/snippets/kickstart_pre_anamon9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/adapters/cobbler/snippets/kickstart_pre_anamon b/deploy/adapters/cobbler/snippets/kickstart_pre_anamon
new file mode 100644
index 00000000..70b84690
--- /dev/null
+++ b/deploy/adapters/cobbler/snippets/kickstart_pre_anamon
@@ -0,0 +1,9 @@
+#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