summaryrefslogtreecommitdiffstats
path: root/server/ipxe
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-18 22:34:42 +0100
committerJannik Schönartz2019-03-18 22:34:42 +0100
commit5c560ee32d356eebf44b976e876081b161b86ecb (patch)
tree17b842c52b6c04145b2f0f54a6385a18cbb7ee4a /server/ipxe
parent[server/registration] Add server registration (diff)
downloadbas-5c560ee32d356eebf44b976e876081b161b86ecb.tar.gz
bas-5c560ee32d356eebf44b976e876081b161b86ecb.tar.xz
bas-5c560ee32d356eebf44b976e876081b161b86ecb.zip
[server/registration] Add client with json instead of parameters (ipxe)
Diffstat (limited to 'server/ipxe')
-rw-r--r--server/ipxe/registration.ipxe8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/ipxe/registration.ipxe b/server/ipxe/registration.ipxe
index 537cb58..40d6a2a 100644
--- a/server/ipxe/registration.ipxe
+++ b/server/ipxe/registration.ipxe
@@ -26,11 +26,9 @@ goto start
:automatic
params
-param mac ${net0/mac}
-param uuid ${uuid}
-param ip ${net0/ip}
-param purpose Pool PC
-chain https://bas.intra.uni-freiburg.de/api/registration/add##params
+param ipxe true
+param client { "type": "CLIENT", "uuid": "${uuid}", "purpose": "Pool PC", "network": { "ip": "${net0/ip}", "mac": "${net0/mac}" } }
+chain https://bas.intra.uni-freiburg.de/api/registration##params
:key
chain -ar http://132.230.4.6/tbk/ReplaceKeysWithOwnKeys.efi