[pve-devel] [PATCH docs 1/2] pct: add script to generate cloudinit options
Leo Nunner
l.nunner at proxmox.com
Fri Jun 2 13:57:30 CEST 2023
…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.30.2
More information about the pve-devel
mailing list