]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Setup.pm
setup: add new ssh_host_key_types_to_generate helper to plugin API
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Sep 2021 16:17:10 +0000 (18:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Oct 2021 10:32:11 +0000 (12:32 +0200)
commitbc5b7618afcb8ae3c5962c90ec77d007953888b8
tree126a71b72a39308440c07eaac769f312e74a81dc
parent6cac5615c8ba6824dafabf5727e5bb9cb7ab0ff2
setup: add new ssh_host_key_types_to_generate helper to plugin API

To guard the ct_file_set_contents call so that it's really only done
if the plugin wants ssh keys.

we'll use that in a future patch to have a more abstract interface
for plugins.

Additional benefit, we can drop (or at least skip) old key types (DSA
anyone) per container os-release type/version with this.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Base.pm