Commit 7772b816 authored by Claudio Cavalli's avatar Claudio Cavalli
Browse files

Rimosso pc master da aule veyon

parent 7329be47
Pipeline #305 passed with stage
in 45 seconds
......@@ -31,7 +31,10 @@ server = session.get("http://proxy:13402/veyon/client_conf", params={"hostname":
if server.status_code != 200:
exit(0)
masterhost = socket.gethostname()
for cluster in server.json():
subprocess.call(["/usr/bin/veyon-cli", "networkobjects", "add", "location", cluster["name"]])
for pc in cluster["computers"]:
subprocess.call(["/usr/bin/veyon-cli", "networkobjects", "add", "computer", pc, "", pc, cluster["name"]])
if pc != masterhost:
subprocess.call(["/usr/bin/veyon-cli", "networkobjects", "add", "computer", pc, "", pc, cluster["name"]])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment