From 0e000e7859b5bbb3b4d294484d1a2613c9031344 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Mon, 8 Jun 2015 19:52:44 -0700 Subject: [PATCH] wip --- README.md | 1 + prepare-vms/ips-txt-to-html.py | 9 ++-- www/htdocs/index.html | 96 ++++++++++++++++++++++++++++++---- 3 files changed, 92 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e656bf45..28abd4e3 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Preparation: - Make sure that you have SSH keys loaded (`ssh-add -l`). - Source `rc`. +- Run `pcopykey`. - Source `postprep.rc`. (This will install a few extra packages, add entries to /etc/hosts, generate SSH keys, and deploy them on all hosts.) diff --git a/prepare-vms/ips-txt-to-html.py b/prepare-vms/ips-txt-to-html.py index bca55bb9..340dd298 100755 --- a/prepare-vms/ips-txt-to-html.py +++ b/prepare-vms/ips-txt-to-html.py @@ -17,6 +17,9 @@ while ips: ips = ips[clustersize:] clusters.append(cluster) +def makenames(addrs): + return [ "node%d"%(i+1) for i in range(len(addrs)) ] + html = open("ips.html", "w") html.write("