[pve-devel] [PATCH 7/8 docs] pct: add script to generate cloudinit options
Daniel Herzig
d.herzig at proxmox.com
Mon Feb 10 13:07:21 CET 2025
From: Leo Nunner <l.nunner at proxmox.com>
…the same way as it's already being done for VMs.
Signed-off-by: Leo Nunner <l.nunner at proxmox.com>
---
gen-pct-cloud-init-opts.pl | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100755 gen-pct-cloud-init-opts.pl
diff --git a/gen-pct-cloud-init-opts.pl b/gen-pct-cloud-init-opts.pl
new file mode 100755
index 0000000..c22c4d1
--- /dev/null
+++ b/gen-pct-cloud-init-opts.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::JSONSchema;
+use PVE::RESTHandler;
+use PVE::LXC::Config;
+
+my $prop = PVE::LXC::Config::cloudinit_config_properties();
+
+my $data = PVE::RESTHandler::dump_properties($prop, 'asciidoc', 'config');
+
+$data =~ s/cloud-init: //g;
+
+print $data;
--
2.39.5
More information about the pve-devel
mailing list