terraform/cloud_init.yml

21 lines
435 B
YAML
Raw Normal View History

2024-12-03 11:20:16 +00:00
#cloud-config
ssh_pwauth: True
chpasswd:
list: |
root:linux
expire: False
users:
- name: "${login}"
sudo: ALL=(ALL) NOPASSWD:ALL
plain_text_passwd: "${passwd}"
shell: /bin/bash
lock-passwd: false
ssh_pwauth: True
chpasswd: { expire: False }
package_update: true
packages:
- qemu-guest-agent
runcmd:
- [ netplan, generate ]
- [ netplan, apply ]
- [ systemctl, enable, --now, qemu-guest-agent ]