Update cloud-init-vm.yaml.tftpl

This commit is contained in:
2025-08-27 14:13:19 +00:00
parent ec340b7f6b
commit d42e297ca6

View File

@ -1,10 +1,11 @@
#cloud-config #cloud-config
package_update: true package_update: true
%{ if length(each.value.extra_packages) > 0 ~}
packages: packages:
%{ for pkg in each.value.extra_packages ~} %{ for pkg in each.value.extra_packages ~}
- ${pkg} - ${pkg}
%{ endfor ~} %{ endfor ~}
%{ endif ~}
%{ if length(each.value.extra_users) > 0 ~} %{ if length(each.value.extra_users) > 0 ~}
users: users: