From 3afa9eb4126fe5520531f8b82662ae02f2ae936f Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 9 Oct 2008 02:23:02 -0400 Subject: [PATCH] Configure the website to use the new autoinstaller code svn path=/trunk/packages/sipb-xen-www/; revision=1096 --- code/controls.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/controls.py b/code/controls.py index 86c23c2..9f5bc48 100644 --- a/code/controls.py +++ b/code/controls.py @@ -78,10 +78,13 @@ def getswap(disksize, memsize): def lvinstall(machine, autoinstall): disksize = machine.disks[0].size memsize = machine.memory - imagesize = disksize - getswap(disksize, memsize) + swapsize = getswap(disksize, memsize) + imagesize = disksize - swapsize ip = machine.nics[0].ip - remctl('web', 'install', machine.name, autoinstall.distribution, - autoinstall.mirror, str(imagesize), ip) + remctl('control', machine.name, 'install', + 'dist=%s' % autoinstall.distribution, + 'mirror=%s' % autoinstall.mirror, + 'imagesize=%s' % imagesize) def lvcopy(machine_orig_name, machine, rootpw): """Copy a golden image onto a machine's disk""" -- 1.7.9.5