apparmor.d/tests/packer/init/debian-server.user-data.yml

55 lines
980 B
YAML
Raw Normal View History

2023-04-30 17:21:27 +02:00
#cloud-config
hostname: ${hostname}
locale: en_IE
keyboard:
layout: ie
ssh_pwauth: true
users:
- name: ${username}
plain_text_passwd: ${password}
shell: /bin/bash
ssh_authorized_keys:
- ${ssh_key}
lock_passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
package_update: true
package_upgrade: true
package_reboot_if_required: false
packages:
- apparmor-profiles
- build-essential
- config-package-dev
- debhelper
- devscripts
- htop
- qemu-guest-agent
- rsync
- vim
runcmd:
- apt-get update -y
2023-09-29 20:20:50 +02:00
- apt-get install -y -t bookworm-backports golang-go
2023-04-30 17:21:27 +02:00
write_files:
- path: /etc/apt/sources.list
append: true
2023-09-29 20:20:50 +02:00
content: deb http://deb.debian.org/debian bookworm-backports main contrib non-free
2023-04-30 17:21:27 +02:00
# Network configuration
- path: /etc/systemd/network/20-wired.network
owner: 'root:root'
permissions: '0644'
content: |
[Match]
Name=en*
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=10