mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
36 lines
698 B
Plaintext
36 lines
698 B
Plaintext
package_update: true
|
|
%{ if length(each.value.extra_packages) > 0 ~}
|
|
packages:
|
|
%{ for pkg in each.value.extra_packages ~}
|
|
- ${pkg}
|
|
%{ endfor ~}
|
|
%{ endif ~}
|
|
|
|
%{ if length(each.value.extra_users) > 0 ~}
|
|
users:
|
|
%{ for u in each.value.extra_users ~}
|
|
- name: ${u.name}
|
|
groups:
|
|
%{ if length(u.groups) > 0 ~}
|
|
%{ for g in u.groups ~}
|
|
- ${g}
|
|
%{ endfor ~}
|
|
%{ endif ~}
|
|
shell: /bin/bash
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
%{ endfor ~}
|
|
|
|
chpasswd:
|
|
list:
|
|
%{ for u in each.value.extra_users ~}
|
|
- ${u.name}:${u.password}
|
|
%{ endfor ~}
|
|
expire: false
|
|
%{ endif ~}
|
|
|
|
%{ if length(each.value.extra_runcmd) > 0 ~}
|
|
runcmd:
|
|
%{ for cmd in each.value.extra_runcmd ~}
|
|
- ${cmd}
|
|
%{ endfor ~}
|
|
%{ endif ~} |