Re: [pve-devel] [PATCH 3/8 container] cloudinit: add dump command to pct

2025-02-13 Thread Fiona Ebner
Am 10.02.25 um 13:07 schrieb Daniel Herzig: > +sub dump_cloudinit_config { > +my ($conf, $type) = @_; > + > +if ($type eq 'user') { > + return cloudinit_userdata($conf); > +} else { # metadata config I'd also guard this with a "$type eq 'meta'" and die for unknown types. > + m

[pve-devel] [PATCH 3/8 container] cloudinit: add dump command to pct

2025-02-10 Thread Daniel Herzig
From: Leo Nunner Introduce a 'pct cloudinit dump ' command to dump the generated cloudinit configuration for a section. Signed-off-by: Leo Nunner --- src/PVE/API2/LXC.pm | 33 + src/PVE/CLI/pct.pm | 4 src/PVE/LXC/Cloudinit.pm | 11 +++