Prémel-Cabic Arnaud 71d6b22b81 feat: add debian12
2024-05-08 17:47:45 +02:00

77 lines
3.0 KiB
Plaintext

#cloud-config
autoinstall:
version: 1
refresh-installer:
update: false
apt:
preserve_sources_list: false
primary:
- arches: [amd64]
uri: http://archive.ubuntu.com/ubuntu
storage:
version: 1
config:
- { id: vdisk, ptable: msdos, path: /dev/sda, wipe: superblock, grub_device: true, type: disk }
# # Linux EFI boot partition (256MB)
# - { device: vdisk, size: 268435456, flag: 'boot', number: 1, grub_device: true, type: partition, id: efi-partition }
# - { fstype: fat32, volume: efi-partition, type: format, id: efi-format, label: ESP }
# - { path: /boot/efi, device: efi-format, type: mount, id: mount-efi }
# Linux boot partition (512MB)
- { device: vdisk, size: 536870912, number: 1, flag: boot, type: partition, id: boot-partition }
- { fstype: ext4, volume: boot-partition, type: format, id: boot-format }
- { path: /boot, device: boot-format, type: mount, id: mount-boot, options: "rw,nodev,nosuid,noexec" }
# Partition for LVM
- { device: vdisk, size: -1, number: 2,type: partition, id: lvm-partition }
- { name: monverre, devices: [ lvm-partition ], preserve: false, type: lvm_volgroup, id: lvm_volgroup-0 }
# LV for root (12GB)
- { name: sys, volgroup: lvm_volgroup-0, size: 12884901888, wipe: superblock, preserve: false, type: lvm_partition, id: lvm_partition-sys }
- { fstype: ext4, volume: lvm_partition-sys, type: format, id: format-lvm-sys }
- { path: /, device: format-lvm-sys, type: mount, id: mount-lvm-sys }
# LV for home (4GB)
- { name: home, volgroup: lvm_volgroup-0, size: 4294967296, wipe: superblock, preserve: false, type: lvm_partition, id: lvm_partition-home }
- { fstype: ext4, volume: lvm_partition-home, type: format, id: format-lvm-home }
- { path: /home, device: format-lvm-home, type: mount, id: mount-lvm-home, options: "rw,nodev,nosuid,noexec" }
# LV for tmp (2GB)
- { name: tmp, volgroup: lvm_volgroup-0, size: 2147483648, wipe: superblock, preserve: false, type: lvm_partition, id: lvm_partition-tmp }
- { fstype: ext4, volume: lvm_partition-tmp, type: format, id: format-lvm-tmp }
- { path: /tmp, device: format-lvm-tmp, type: mount, id: mount-lvm-tmp, options: "rw,nodev,nosuid" }
swap:
size: 0
ssh:
allow_public_ssh_keys: true
allow-pw: true
disable-root: false
install-server: true
ssh_quiet_keygen: true
locale: en_US
keyboard:
layout: fr
network:
network:
version: 2
ethernets:
enp6s18:
dhcp4: true
packages:
- linux-image-virtual-hwe-22.04
- qemu-guest-agent
- sudo
- wireguard
user-data:
package_upgrade: false
timezone: Europe/Paris
users:
- name: packer
groups: [adm, sudo]
lock-passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
# password crypted with sha512. default value = "packer"
passwd: $6$lhHsNpj6wyEXs7sn$cOf53uNhEBuNOGeYBMZkCrRS.WzsnwkhY0caiAbbXw4AwumP.7W7e8n0r71vbDey7AMYNsLI5ZEaeqKr.DtYM/