--- apt: disable_suites: - backports fallback: abort geoip: false preserve_sources_list: false primary: - arches: - i386 - amd64 - arm64 uri: http://10.5.235.185/ubuntu/ security: - arches: - i386 - amd64 - arm64 uri: http://10.5.235.185/ubuntu-security/ early-commands: - echo 'CLOUDINIT SCRIPT RUNNING' | wall - useradd -M -d / -g root -s /bin/bash -c 'Emergency Account' -p NP emerg - usermod -p 'xxx' emerg - 'echo ''emerg ALL=(ALL) NOPASSWD: ALL'' > /etc/sudoers.d/emerg' - chmod 0440 /etc/sudoers.d/emerg - echo '10.5.224.132 runner-zycqk6e-project-4-concurrent-0' >> /etc/hosts - 'echo ''sshd: 10.5.230.120'' >> /etc/hosts.allow' - 'echo ''sshd: 10.5.116.56'' >> /etc/hosts.allow' - 'echo ''sshd: 10.5.224.132 runner-zycqk6e-project-4-concurrent-0'' >> /etc/hosts.allow' error-commands: - 'echo ''ERROR : MASTER BUILDING FAILED !!!!!!''' - cat /var/crash/*.unknown.crash >&2 || true - cat /var/crash/*.install_fail.crash >&2 || true - '' identity: hostname: template-ubuntu2404 password: xxx username: vagrant keyboard: layout: fr late-commands: - echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant - 'echo ''vagrant ALL=(ALL) NOPASSWD: ALL'' >> /target/etc/sudoers.d/vagrant' - chmod 0440 /target/etc/sudoers.d/vagrant - grep '^emerg:' /etc/passwd >> /target/etc/passwd - grep '^emerg:' /etc/shadow >> /target/etc/shadow - 'echo ''emerg ALL=(ALL) NOPASSWD: ALL'' > /target/etc/sudoers.d/emerg' - chmod 0440 /target/etc/sudoers.d/emerg - sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT=/#GRUB_CMDLINE_LINUX_DEFAULT=/' /target/etc/default/grub - sed -i 's/^GRUB_TIMEOUT_STYLE=hidden/#GRUB_TIMEOUT_STYLE=hidden/' /target/etc/default/grub - sed -i 's/^GRUB_TIMEOUT=0/#GRUB_TIMEOUT=0/' /target/etc/default/grub - sed -i 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' /target/etc/default/grub - echo 'GRUB_TERMINAL_OUTPUT="console serial"' >> /target/etc/default/grub - echo 'GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"' >> /target/etc/default/grub - 'echo ''GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 net.ifnames=0 apparmor=0 rootdelay=300 "'' >> /target/etc/default/grub ' - curtin in-target --target=/target -- update-grub - echo 127.0.0.1 $(hostname) >> /target/etc/hosts - echo 'SYSTEM WILL NOW REBOOT ON DISK' | wall - sleep 1 - '' locale: en_US network: network: ethernets: eth0: addresses: - 192.168.5.12/24 dhcp4: false gateway4: 192.168.5.1 nameservers: addresses: - 10.17.30.30 - 10.151.156.83 - 10.17.30.29 - 10.151.156.82 - 10.17.30.4 version: 2 packages: - rsync ssh: allow-pw: true authorized-keys: - ssh-rsa xxx install-server: true storage: config: - grub_device: true id: disk-vda name: vda path: /dev/vda preserve: false ptable: msdos type: disk wipe: superblock-recursive - device: disk-vda flag: '' id: part_boot number: 1 preserve: false size: 1023M type: partition wipe: superblock - fstype: ext4 id: format_boot label: /boot preserve: false type: format volume: part_boot - device: disk-vda flag: lvm id: part_sys1 number: 2 preserve: false size: 18432M type: partition wipe: superblock-recursive - devices: - part_sys1 id: lvm_volgroup-sys1 name: sys1 preserve: false type: lvm_volgroup - device: disk-vda flag: lvm id: part_sys2 number: 3 preserve: false size: 18432M type: partition wipe: superblock-recursive - devices: - part_sys2 id: lvm_volgroup-sys2 name: sys2 preserve: false type: lvm_volgroup - device: disk-vda flag: extended id: part_extended number: 4 preserve: false size: 19455M type: partition - device: disk-vda flag: logical id: part_data1 number: 5 preserve: false size: 19455M type: partition wipe: superblock-recursive - devices: - part_data1 id: lvm_volgroup-data1 name: data1 preserve: false type: lvm_volgroup - id: lvm_partition_root name: rootfs preserve: false size: 8192M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: ext4 id: format_root preserve: false type: format volume: lvm_partition_root - device: format_root id: mount_root path: / type: mount - id: lvm_partition_jvm name: jvm preserve: false size: 3072M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: ext4 id: format_jvm preserve: false type: format volume: lvm_partition_jvm - device: format_jvm id: mount_jvm path: /usr/lib/jvm type: mount - id: lvm_partition_var name: var preserve: false size: 3072M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: ext4 id: format_var preserve: false type: format volume: lvm_partition_var - device: format_var id: mount_var path: /var type: mount - id: lvm_partition_tmp name: tmp preserve: false size: 256M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: ext4 id: format_tmp preserve: false type: format volume: lvm_partition_tmp - device: format_tmp id: mount_tmp path: /tmp type: mount - id: lvm_partition_home name: home preserve: false size: 256M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: ext4 id: format_home preserve: false type: format volume: lvm_partition_home - device: format_home id: mount_home path: /home type: mount - id: lvm_partition_swap name: swap preserve: false size: 512M type: lvm_partition volgroup: lvm_volgroup-sys1 - fstype: swap id: format_swap preserve: false type: format volume: lvm_partition_swap - device: format_swap id: mount_swap path: '' type: mount - id: lvm_partition_team name: team preserve: false size: 256M type: lvm_partition volgroup: lvm_volgroup-data1 - fstype: ext4 id: format_team preserve: false type: format volume: lvm_partition_team - device: format_team id: mount_team path: /home/team type: mount - device: format_boot id: mount_boot path: /boot type: mount version: 1 swap: swap: 0 version: 1 ...