Files
opentofu-standart-vm/cluster/cloud-config/rocky.yml
Iurii Anfinogenov 40694927c8 commit fix
2026-05-03 13:23:54 +00:00

31 lines
731 B
YAML

#cloud-config
timezone: Europe/Moscow
users:
- name: rocky
groups: [wheel]
shell: /bin/bash
lock_passwd: false
passwd: "$6$M8xzsYT0lwWjlcdH$HJRhw0rBb2WowCbqg03/WvMUlte0j5SLs9tAVCxCukEqWAt7XG0ceWYc5GRUBmRxFRTbcEDrdCVTXu5jIxN2f0"
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ${ssh_key}
package_update: true
packages:
- qemu-guest-agent
runcmd:
- systemctl enable --now qemu-guest-agent
- hostnamectl set-hostname ${hostname}
- systemctl disable --now packagekit || true
- systemctl disable --now ModemManager || true
- systemctl disable --now multipathd || true
write_files:
- path: /etc/motd
content: |
Managed by OpenTofu
final_message: "cloud-init finished"