Files
proxmox-packer/builds/linux/ubuntu/25-04/data/user-data.pkrtpl.hcl
TheHitman1977 57d76b51f7 refactor: 25.04 is not an Ubuntu LTS release (#15)
* feat: 25.04 is not an Ubuntu LTS release

* doc: removed LTS from Ubuntu 25.04
2025-10-13 23:28:07 -05:00

30 lines
872 B
HCL

#cloud-config
autoinstall:
version: 1
early-commands:
- sudo systemctl stop ssh
locale: ${vm_os_language}
keyboard:
layout: ${vm_os_keyboard}
${storage}
${network}
identity:
hostname: ubuntu-server
username: ${build_username}
password: ${build_password_encrypted}
ssh:
install-server: true
allow-pw: true
packages:
- openssh-server
- cloud-init
user-data:
disable_root: false
timezone: ${vm_os_timezone}
late-commands:
- sed -i -e 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /target/etc/ssh/sshd_config
- echo '${build_username} ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/${build_username}
- curtin in-target --target=/target -- chmod 440 /etc/sudoers.d/${build_username}
- curtin in-target -- apt-get update
- curtin in-target -- apt-get install -y qemu-guest-agent