]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Cloudinit.pm
cloud-init: don't use /tmp for config files
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Mar 2018 08:04:12 +0000 (09:04 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Mar 2018 08:15:50 +0000 (09:15 +0100)
commitf62c36cffa7c29dcc3f7cbcf8d64fa047368958c
tree9b805bbbae8837ebdb2e6ca4092bca402b65fe3a
parente8ac21381ee32e780fc540c756cdd3e50b1a193c
cloud-init: don't use /tmp for config files

Leaving files in /tmp was mostly useful for debugging
purposes initially. Also /tmp is a rather insecure option
for this for a final version, so use
/run/pve/cloudinit/$vmid, and move the file writing into
commit_cloudinit_disk() which now takes a hash mapping file
paths to contents, to not duplicate the temp-file logic for
the different citypes.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer/Cloudinit.pm