fix cloud init template
This commit is contained in:
parent
4d8e641466
commit
d4782d00cc
2 changed files with 2 additions and 5 deletions
|
|
@ -58,11 +58,7 @@
|
|||
force: false
|
||||
when: not debian_image_stat.stat.exists
|
||||
|
||||
- name: Ensure ZFS storage allows snippets content
|
||||
command: >
|
||||
pvesm set {{ proxmox_image_storage }} --content images,rootdir,snippets
|
||||
|
||||
- name: Ensure local storage allows snippets content
|
||||
- name: Ensure local storage allows snippets content (used for cloud-init snippets)
|
||||
command: >
|
||||
pvesm set local --content images,iso,vztmpl,snippets
|
||||
failed_when: false
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ resource "proxmox_vm_qemu" "vm" {
|
|||
}
|
||||
|
||||
# Cloud-init: user, ssh keys, IP, and custom snippet for qemu-guest-agent
|
||||
# Note: Using 'local' storage for snippets (not ZFS) as ZFS storage doesn't properly support snippet paths
|
||||
ciuser = var.cloud_init_user
|
||||
sshkeys = var.ssh_authorized_keys
|
||||
ipconfig0 = try(each.value.ipconfig0, local.default_ipconfig0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue