[pve-devel] [PATCH 7/8 docs] pct: add script to generate cloudinit options
Fiona Ebner
f.ebner at proxmox.com
Thu Feb 13 10:52:25 CET 2025
Am 10.02.25 um 13:07 schrieb Daniel Herzig:
> From: Leo Nunner <l.nunner at proxmox.com>
>
> …the same way as it's already being done for VMs.
Nit: can we avoid the unicode ellipsis here ;)
>
> 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 '.';
Style nit: add a blank line here...
> +use strict;
> +use warnings;
...and here...
> +use PVE::JSONSchema;
> +use PVE::RESTHandler;
> +use PVE::LXC::Config;
...and sort alphabetically.
> +
> +my $prop = PVE::LXC::Config::cloudinit_config_properties();
> +
> +my $data = PVE::RESTHandler::dump_properties($prop, 'asciidoc', 'config');
> +
> +$data =~ s/cloud-init: //g;
> +
> +print $data;
More information about the pve-devel
mailing list