2024-10-13 15:26:11 +02:00
|
|
|
# Fichier autoinstall.yml pour autoinstallation Ubuntu 24.04
|
|
|
|
|
2024-10-13 15:18:43 +02:00
|
|
|
autoinstall:
|
|
|
|
# version is an Autoinstall required field.
|
|
|
|
version: 1
|
2024-10-13 15:26:11 +02:00
|
|
|
interactive-sections:
|
2024-10-13 15:54:36 +02:00
|
|
|
# - network
|
|
|
|
# - proxy
|
2024-10-13 15:26:11 +02:00
|
|
|
- identity
|
|
|
|
|
2024-10-13 16:09:04 +02:00
|
|
|
locale: "fr_FR.UTF-8"
|
|
|
|
timezone: "Europe/Paris"
|
2024-10-13 15:26:11 +02:00
|
|
|
|
2024-10-13 16:09:04 +02:00
|
|
|
keyboard:
|
|
|
|
layout: "fr"
|
|
|
|
variant: "latin9"
|
2024-10-13 15:34:41 +02:00
|
|
|
|
2024-10-13 15:54:36 +02:00
|
|
|
# ssh:
|
|
|
|
# install-server: true
|
2024-10-13 15:34:41 +02:00
|
|
|
|
|
|
|
# install codecs, which currently means installing the
|
|
|
|
# ubuntu-restricted-addons package
|
|
|
|
codecs:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
# install drivers as suggested by `ubuntu-drivers`.
|
|
|
|
drivers:
|
|
|
|
install: true
|
|
|
|
|
2024-10-13 15:18:43 +02:00
|
|
|
# This adds the default ubuntu-desktop packages to the system.
|
|
|
|
# Any desired additional packages may also be listed here.
|
|
|
|
packages:
|
|
|
|
- ubuntu-desktop
|
2024-10-13 15:34:41 +02:00
|
|
|
- python3-poetry
|
|
|
|
- git
|
2024-10-13 15:18:43 +02:00
|
|
|
|
|
|
|
# Subiquity will, by default, configure a partition layout using LVM.
|
|
|
|
# The 'direct' layout method shown here will produce a non-LVM result.
|
2024-10-13 15:54:36 +02:00
|
|
|
# storage:
|
|
|
|
# layout:
|
|
|
|
# name: direct
|
2024-10-13 15:18:43 +02:00
|
|
|
|
2024-10-13 15:34:41 +02:00
|
|
|
# Updates from both the security and updates pockets are installed.
|
2024-10-13 16:09:04 +02:00
|
|
|
updates: all
|
2024-10-13 15:34:41 +02:00
|
|
|
|
|
|
|
# Reboot après l'installation
|
|
|
|
shutdown: reboot
|
|
|
|
|
2024-10-13 15:18:43 +02:00
|
|
|
# The live-server ISO does not contain some of the required packages,
|
|
|
|
# such as ubuntu-desktop or the hwe kernel (or most of their depdendencies).
|
|
|
|
# The system being installed will need some sort of apt access.
|
|
|
|
# proxy: http://192.168.0.1:3142
|
|
|
|
|
|
|
|
late-commands:
|
|
|
|
# Enable the boot splash
|
|
|
|
- >-
|
|
|
|
curtin in-target --
|
|
|
|
sed -i /etc/default/grub -e
|
|
|
|
's/GRUB_CMDLINE_LINUX_DEFAULT=".*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/'
|
|
|
|
- curtin in-target -- update-grub
|
|
|
|
|
|
|
|
# Let NetworkManager handle network
|
2024-10-13 15:45:08 +02:00
|
|
|
# - rm /target/etc/netplan/00-installer-config*yaml
|
|
|
|
# - >-
|
|
|
|
# printf "network:\n version: 2\n renderer: NetworkManager"
|
|
|
|
# > /target/etc/netplan/01-network-manager-all.yaml
|
2024-10-13 15:18:43 +02:00
|
|
|
|
|
|
|
# Remove other packages present by default in Ubuntu Server but not
|
|
|
|
# normally present in Ubuntu Desktop.
|
2024-10-13 15:34:41 +02:00
|
|
|
# - >-
|
|
|
|
# curtin in-target -- apt-get remove -y
|
|
|
|
# ubuntu-server ubuntu-server-minimal
|
|
|
|
# binutils byobu curl dmeventd finalrd gawk
|
|
|
|
# kpartx mdadm ncurses-term needrestart open-iscsi openssh-server
|
|
|
|
# sg3-utils ssh-import-id sssd thin-provisioning-tools vim tmux
|
|
|
|
# sosreport screen open-vm-tools motd-news-config lxd-agent-loader
|
|
|
|
# landscape-common htop git fonts-ubuntu-console ethtool
|
|
|
|
|
|
|
|
# # Keep cloud-init, as it performs some of the installation on first boot.
|
|
|
|
# - curtin in-target -- apt-get install -y cloud-init
|
2024-10-13 15:18:43 +02:00
|
|
|
|
|
|
|
# Finally, remove things only installed as dependencies of other things
|
|
|
|
# we have already removed.
|
2024-10-13 15:34:41 +02:00
|
|
|
# - curtin in-target -- apt-get autoremove -y
|
|
|
|
|
2024-10-13 15:18:43 +02:00
|
|
|
# A postinstall script may optionally be used for further install
|
|
|
|
# customization. Deploy this postinstall.sh script on the webserver.
|
|
|
|
# - wget -O /target/postinstall.sh http://192.168.0.2/postinstall.sh
|
|
|
|
# - curtin in-target -- bash /postinstall.sh
|
|
|
|
# - rm /target/postinstall.sh
|
|
|
|
|
2024-10-13 16:09:04 +02:00
|
|
|
- curtin in-target -- git clone https://git.libretic.fr/libretic/libreticmenu.git /opt/libreticmenu/
|
2024-10-13 16:44:04 +02:00
|
|
|
- curtin in-target -- LANG=fr_FR.UTF-8 /opt/libreticmenu/libreticmenu.sh --firstboot
|