Files
kvm-cloudimage/files/openbsd-user-data
2025-07-30 21:10:52 +02:00

28 lines
508 B
Plaintext

#cloud-config
package_reboot_if_required: true
package_update: true
package_upgrade: true
packages:
- sudo
- vim
- git
- qemu-guest-agent
ssh_pwauth: false
users:
- name: __VM_USERNAME__
sudo: "ALL=(ALL) NOPASSWD:ALL"
groups: wheel
hashed_passwd: "!"
lock_passwd: true
shell: /usr/local/bin/bash
ssh_authorized_keys:
- __SSH_PUB_KEY__
- name: root
hashed_passwd: "!"
lock_passwd: true
write_files:
- path: /etc/sudoers
content: |
%wheel ALL=(ALL) NOPASSWD: ALL
append: true