[pve-devel] [PATCH 1/5] add cloudinit config options

Alexandre Derumier aderumier at odiso.com
Wed Jun 10 17:10:09 CEST 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index e89308c..03c489b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -384,6 +384,34 @@ EODESCR
 	maxLength => 256,
 	optional => 1,
     },
+    hostname => {
+        optional => 1,
+        description => "Set a host name for the container.",
+        type => 'string',
+        maxLength => 255,
+    },
+    searchdomain => {
+        optional => 1,
+        type => 'string',
+        description => "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.",
+    },
+    nameserver => {
+        optional => 1,
+        type => 'string',
+        description => "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.",
+    },
+    ipaddress => {
+        optional => 1,
+        type => 'string',
+        description => "Ip address cidr format",
+    },
+    cloudinit => {
+	optional => 1,
+	type => 'boolean',
+	description => "Enable cloudinit config generation.",
+	default => 0,
+    },
+
 };
 
 # what about other qemu settings ?
-- 
2.1.4




More information about the pve-devel mailing list