Add config_user1_20260521_164413.yaml

This commit is contained in:
gitops_test 2026-05-21 16:44:13 +00:00
parent 8060508c48
commit 3f7d9bad7a

View File

@ -0,0 +1,22 @@
hostname: default-server
ssh_pwauth: true
chpasswd:
expire: false
users:
- default
- name: {name}
passwd: {pwd}
shell: /bin/bash
lock_passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin, sudo
runcmd:
- echo "regenerating host keys"
- rm -f /etc/ssh/ssh_host_*
- ssh-keygen -A
- echo "restarting sshd"
- systemctl restart sshd
debug: true
output:
all: "| tee -a /var/log/cloud-init-debug.log"
final_message: "Default VM Cloudinit done"