summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@drwily.rdu.redhat.com>2007-09-04 22:16:36 -0400
committerroot <root@drwily.rdu.redhat.com>2007-09-04 22:16:36 -0400
commit5bee3dabb7782e5142c1dc915f0161f86819b60e (patch)
treecb287443ef10ef5f47bbbc403838f8802ea0e128
parent2501f06915d373edba243e6c4433cdf0ec344ee8 (diff)
downloadthird_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.tar.gz
third_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.tar.xz
third_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.zip
changelog + docs
-rw-r--r--CHANGELOG1
-rw-r--r--cobbler/item_profile.py11
-rw-r--r--docs/cobbler.pod4
3 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 7795c90..79f056c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,7 @@ Cobbler CHANGELOG
* Fri Aug 31 2007 - 0.6.2
- cobbler repo auto-add to discover yum repos automatically
- kickstarts automatically save kickstart file used to /root/cobbler.ks
+- allow multiple (comma-seperated) values for --virt-size
* Thu Aug 30 2007 - 0.6.1
- re enable --resolve in yumdownloader (cobbler repo mgmt feature)
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index d8a7152..e66b1d9 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -167,6 +167,17 @@ class Profile(item.Item):
size you want.
"""
# num is a non-negative integer (0 means default)
+ # can also be a comma seperated list -- for usage with multiple disks
+
+ if num.find(",") != -1:
+ tokens = num.split(",")
+ for t in tokens:
+ # hack to run validation on each
+ self.set_virt_file_size(t)
+ # if no exceptions raised, good enough
+ self.virt_file_size = num
+ return True
+
try:
inum = int(num)
if inum != float(num):
diff --git a/docs/cobbler.pod b/docs/cobbler.pod
index f786b4c..62a99c8 100644
--- a/docs/cobbler.pod
+++ b/docs/cobbler.pod
@@ -123,6 +123,8 @@ If this parameter is not provided, the kickstart file will default to /etc/cobbl
=item virt-file-size
(optional) (Virt-only) how large the disk image should be in gigabytes. The default is "5".
+This can be a comma seperated list (ex: "5,6,7") to allow for multiple disks of different sizes
+depending on what is given to --virt-path.
=item virt-ram
@@ -139,6 +141,8 @@ absolute path to an existing directory with an optional file name component.
There is also some experimental support for specifying partitions "/dev/sda4" or volume groups "VolGroup00", etc.
+For multiple disks, seperate the values with commas such as "VolGroup00,VolGroup00" or "/dev/sda4,/dev/sda5". Both those examples would create two disks for the VM.
+
=item repos
(optional) a space delimited list of all the repos (created with "cobbler repo add" and "cobbler reposync") that this profile