]> git.proxmox.com Git - qemu-server.git/commit
cloud-init: allow custom network/user data files via snippets
authorDavid Limbeck <d.limbeck@proxmox.com>
Thu, 7 Feb 2019 14:12:35 +0000 (15:12 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Mar 2019 08:02:33 +0000 (09:02 +0100)
commitcb702ebe0f683ab6c7534714912727588be36282
tree4d46c90997e06b0032d70858f630ca4e119f0b4e
parent0a6f7cc6017042419a0356b00e37da9e1fd36cb8
cloud-init: allow custom network/user data files via snippets

Adds the 'cicustom' option to specify either or both network and user
options as property strings. Their parameters are files in a snippets
storage (e.g. local:snippets/network.yaml). If one or both are specified
they are used instead of their respective generated configuration.
This allows the use of completely custom configurations and is also a
possible solution for bug #2068 by specifying a custom user file that
contains package_upgrade: false.

Tested with Ubuntu 18.10 and cloud-init 18.4.7

Signed-off-by: David Limbeck <d.limbeck@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm
PVE/QemuServer/Cloudinit.pm