53 lines
873 B
Text
53 lines
873 B
Text
#cloud-config
|
|
hostname: "${name}"
|
|
manage_etc_hosts: true
|
|
disable_root: false
|
|
timezone: Europe/Amsterdam
|
|
|
|
ssh_authorized_keys:
|
|
%{ for key in admin_authorized_keys ~}
|
|
- "${key}"
|
|
%{ endfor ~}
|
|
|
|
%{ if insecure_password }
|
|
chpasswd:
|
|
list: |
|
|
root:root
|
|
expire: False
|
|
ssh_pwauth: true
|
|
%{ else }
|
|
ssh_pwauth: false
|
|
%{ endif }
|
|
|
|
%{ if use_host_cert }
|
|
ssh_keys:
|
|
ed25519_private: |
|
|
${indent(4, private_key)}
|
|
ed25519_certificate: "${host_cert}"
|
|
%{ endif}
|
|
|
|
write_files:
|
|
- path: /etc/default/locale
|
|
content: |
|
|
LC_ALL=en_US.UTF-8
|
|
LANG=en_US.UTF-8
|
|
- path: /etc/locale.gen
|
|
content: |
|
|
en_US.UTF-8 UTF-8
|
|
|
|
runcmd:
|
|
- dhclient -r
|
|
- dhclient
|
|
- locale-gen
|
|
|
|
%{ if add_data_share }
|
|
mounts:
|
|
- ["data", "/mnt/data", "9p", "trans=virtio,rw", "0", "0"]
|
|
%{ endif }
|
|
|
|
%{ if fixed_dns != "" }
|
|
manage_resolv_conf: true
|
|
resolv_conf:
|
|
nameservers:
|
|
- "${fixed_dns}"
|
|
%{ endif }
|