lab:ansible_virtualbox_autoboot_linux:customize_user-data_for_ubuntu_unattended_install
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lab:ansible_virtualbox_autoboot_linux:customize_user-data_for_ubuntu_unattended_install [2024/01/15 21:09] – created user | lab:ansible_virtualbox_autoboot_linux:customize_user-data_for_ubuntu_unattended_install [2024/05/10 05:15] (current) – removed user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Customize user-data for Ubuntu Unattended Install ====== | ||
- | A custom " | ||
- | FIXME The file below is in development | ||
- | |||
- | <file yaml user-data> | ||
- | # | ||
- | autoinstall: | ||
- | version: 1 | ||
- | storage: | ||
- | layout: | ||
- | name: lvm | ||
- | match: | ||
- | size: largest | ||
- | locale: en_US.UTF-8 | ||
- | keyboard: | ||
- | layout: us | ||
- | identity: | ||
- | hostname: ubuntu-server | ||
- | username: user | ||
- | password: " | ||
- | ssh: | ||
- | install-server: | ||
- | allow-pw: true | ||
- | apt: | ||
- | primary: | ||
- | - arches: [default] | ||
- | uri: http:// | ||
- | packages: | ||
- | - build-essential | ||
- | - network-manager | ||
- | - dkms | ||
- | - emacs-nox | ||
- | package_update: | ||
- | package_upgrade: | ||
- | late-commands: | ||
- | - echo 'user ALL=(ALL) NOPASSWD: | ||
- | # Changing from networkd to NetworkManager | ||
- | # move existing config out of the way | ||
- | - find / | ||
- | # Create a new netplan and enable it | ||
- | - | | ||
- | cat <<EOF | sudo tee / | ||
- | network: | ||
- | version: 2 | ||
- | renderer: NetworkManager | ||
- | EOF | ||
- | - curtin in-target --target /target netplan generate | ||
- | - curtin in-target --target /target netplan apply | ||
- | - curtin in-target --target /target systemctl enable NetworkManager.service | ||
- | </ |
lab/ansible_virtualbox_autoboot_linux/customize_user-data_for_ubuntu_unattended_install.1705352998.txt.gz · Last modified: 2024/01/15 21:09 by user