From 43932658350c5d7499476308b2898122655425fa Mon Sep 17 00:00:00 2001 From: Matthew Hicks Date: Tue, 17 Jun 2008 16:23:22 -0400 Subject: Updated find_resources.py and func-find-resources script to look across minions for enough RAM and a matching architecture to run a 'virt install' (koan) - Requires the freemem functionality enhancement to the virt.py module - Only allows Domain-0 shrink to 512M to keep it stable -- Technically, Domain-0 can be shrunk to 256M which is in accordance with how the freemem module reports available memory --- contrib/func-find-resources | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 contrib/func-find-resources (limited to 'contrib/func-find-resources') diff --git a/contrib/func-find-resources b/contrib/func-find-resources new file mode 100755 index 0000000..fc85ff7 --- /dev/null +++ b/contrib/func-find-resources @@ -0,0 +1,11 @@ +#!/usr/bin/python + +import sys +import distutils.sysconfig +import func.overlord.find_resources as find_resources + +find_res = find_resources.FindResources() +avail_host = find_res.run(sys.argv) + +if avail_host: + print "%s" % avail_host[0] -- cgit