summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2013-07-02 07:24:30 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2013-07-02 07:24:30 +0000
commit21fa4e7da4c566ecaba3cc70dedb74c982674832 (patch)
treeb24e7e233d0269d9977af448100a30f40afb1146
parent2a52a1b530e2a430a34a28255ec9a2dff4f34534 (diff)
downloaddefinitions-21fa4e7da4c566ecaba3cc70dedb74c982674832.tar.gz
Allow to set the number of cpus for virtualbox and kvm deployments.
-rw-r--r--writeexts.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/writeexts.py b/writeexts.py
index 410b8c9f..2a54d757 100644
--- a/writeexts.py
+++ b/writeexts.py
@@ -124,6 +124,10 @@ class WriteExtension(cliapp.Application):
'''Parse RAM size from environment.'''
return self._parse_size_from_environment('RAM_SIZE', '1G')
+ def get_vcpu_count(self):
+ '''Parse the virtual cpu count from environment.'''
+ return self._parse_size_from_environment('VCPUS', '1')
+
def create_state(self, real_root):
'''Create the state subvolumes that are shared between versions'''