From 79a8acb79407dd513dfd62762236f411166b98c1 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Wed, 27 Aug 2025 18:19:17 +0000 Subject: [PATCH] Update cloud-init-vm.yaml.tftpl --- cloud-init-vm.yaml.tftpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cloud-init-vm.yaml.tftpl b/cloud-init-vm.yaml.tftpl index 4cfe075..5256ec8 100644 --- a/cloud-init-vm.yaml.tftpl +++ b/cloud-init-vm.yaml.tftpl @@ -2,31 +2,31 @@ package_update: true %{ if length(each.value.extra_packages) > 0 ~} packages: - %{ for pkg in each.value.extra_packages ~} +%{ for pkg in each.value.extra_packages ~} - ${pkg} - %{ endfor ~} +%{ endfor ~} %{ endif ~} %{ if length(each.value.extra_users) > 0 ~} users: - %{ for u in each.value.extra_users ~} +%{ for u in each.value.extra_users ~} - name: ${u.name} groups: [${join(", ", u.groups)}] shell: /bin/bash sudo: ALL=(ALL) NOPASSWD:ALL - %{ endfor ~} +%{ endfor ~} chpasswd: list: - %{ for u in each.value.extra_users ~} +%{ for u in each.value.extra_users ~} ${u.name}:${u.password} - %{ endfor ~} +%{ endfor ~} expire: false %{ endif ~} %{ if length(each.value.extra_runcmd) > 0 ~} runcmd: - %{ for cmd in each.value.extra_runcmd ~} +%{ for cmd in each.value.extra_runcmd ~} - ${cmd} - %{ endfor ~} +%{ endfor ~} %{ endif ~}