Inject SSH public key through Terraform/cloud-init from Gitea secret so access can be rotated without rebuilding the template image.
16 lines
245 B
Smarty
16 lines
245 B
Smarty
#cloud-config
|
|
hostname: ${hostname}
|
|
manage_etc_hosts: true
|
|
resolv_conf:
|
|
nameservers:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
|
|
preserve_hostname: false
|
|
fqdn: ${hostname}.${domain}
|
|
|
|
users:
|
|
- name: micqdf
|
|
ssh_authorized_keys:
|
|
- ${SSH_KEY_PUBLIC}
|