]> git.proxmox.com Git - qemu-server.git/commit
add function to dump cloudinit config
authorMira Limbeck <m.limbeck@proxmox.com>
Wed, 5 Jun 2019 09:09:41 +0000 (11:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Jun 2019 12:34:11 +0000 (14:34 +0200)
commite73ca4d0ce1c9456e78ac3fb551dcefd9030bcb0
tree4828caf6f148d9cfed30aa13352481e10bbbde33
parentdc62a7fafc08596f866f2b33b7d40231bb506761
add function to dump cloudinit config

This adds a function to dump the generated cloudinit config. Only one
can be dumped at a time, either 'user', 'network' or 'meta'.

The logic to get user, network and metadata is copied from the other
path that also creates the ISO image to keep it simple and not
complicate the other code path further.

The hash generation for the metadata config is unified between nocloud
and configdrive2 formats. We need it a 3rd time with the new dump
functions so it makes sense to combine it and the metadata config
generation in a single function. The <format>_gen_metadata functions are
each used twice now.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/QemuServer/Cloudinit.pm