2023-11-15 16:43:00 +05:30
|
|
|
#cloud-config
|
|
|
|
# vim: syntax=yaml
|
2023-12-12 19:32:24 +05:30
|
|
|
packages:
|
|
|
|
- sudo
|
|
|
|
- qemu-guest-agent
|
|
|
|
runcmd:
|
|
|
|
- [ systemctl, daemon-reload ]
|
|
|
|
- [ systemctl, enable, qemu-guest-agent.service ]
|
|
|
|
- [ systemctl, start, --wait, qemu-guest-agent.service ]
|
2023-11-15 16:43:00 +05:30
|
|
|
|
|
|
|
users:
|
|
|
|
- name: root
|
|
|
|
ssh_authorized_keys:
|
2023-12-12 19:32:24 +05:30
|
|
|
- ${ssh_public_key}
|
2023-11-15 16:43:00 +05:30
|
|
|
- name: atm
|
|
|
|
gecos: Aravinth Manivannan
|
|
|
|
groups: users, admin
|
|
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
|
|
shell: /bin/bash
|
|
|
|
lock_passwd: true
|
|
|
|
plain_text_passwd: fooabr12
|
|
|
|
ssh_authorized_keys:
|
2023-12-12 19:32:24 +05:30
|
|
|
- ${ssh_public_key}
|
2023-11-15 16:43:00 +05:30
|
|
|
|
|
|
|
ssh_pwauth: true
|
|
|
|
chpasswd:
|
|
|
|
list: |
|
|
|
|
root:foobar12
|
|
|
|
atm:foobar12
|
|
|
|
expire: False
|