refactor: move Packer templates to top-level packer/ directory
This commit is contained in:
51
packer/ubuntu-24.04/http/user-data
Normal file
51
packer/ubuntu-24.04/http/user-data
Normal file
@@ -0,0 +1,51 @@
|
||||
#cloud-config
|
||||
autoinstall:
|
||||
version: 1
|
||||
|
||||
source:
|
||||
id: ubuntu-server
|
||||
|
||||
ssh:
|
||||
install-server: true
|
||||
allow-pw: true
|
||||
disable_root: true
|
||||
# ssh_quiet_keygen: true
|
||||
# allow_public_ssh_keys: true
|
||||
|
||||
ssh_pwauth: true
|
||||
|
||||
locale: en_US.UTF-8
|
||||
keyboard:
|
||||
layout: us
|
||||
|
||||
refresh-installer:
|
||||
update: true
|
||||
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
- chrony
|
||||
|
||||
storage:
|
||||
layout:
|
||||
name: lvm # direct
|
||||
policy: all
|
||||
# swap:
|
||||
# filename: /swap.img
|
||||
# size: auto
|
||||
|
||||
user-data:
|
||||
disable_root: true
|
||||
package_upgrade: false
|
||||
timezone: America/Chicago
|
||||
users:
|
||||
- name: wed
|
||||
primary-group: users
|
||||
groups: sudo
|
||||
lock_passwd: false # true
|
||||
passwd: "$6$KuJJYQtKFO02HoEG$AzpYknAjxx1E7LqH.T3eZou5rgQ2RTkxstHwuRaXflT6ZN2NPPS0SiD/F.KdZmz4A3/OR2VNmfoSzuoYwzdfT."
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnSM/9fO8rz/amqkyoGUzUKNNzzmtSXPwOCr1O9zKNO ansible
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
|
||||
shutdown: reboot
|
||||
Reference in New Issue
Block a user