diff --git a/scripts/preseed/local_iso.sh b/scripts/preseed/local_iso.sh index 751ce5c..e334433 100755 --- a/scripts/preseed/local_iso.sh +++ b/scripts/preseed/local_iso.sh @@ -1,5 +1,7 @@ #! /usr/bin/env bash -BUILD_ROOT=~/build + + +BUILD_ROOT=~/infra/build PROJECT_ROOT=~/infra USER=virgil diff --git a/ubuntu/user-data.apollo.yaml b/ubuntu/user-data.apollo.yaml new file mode 100644 index 0000000..dc5892d --- /dev/null +++ b/ubuntu/user-data.apollo.yaml @@ -0,0 +1,66 @@ +#cloud-config +autoinstall: + version: 1 + # reference link to use https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html + locale: en_US.UTF-8 + source: + id: ubuntu-server-minimal + refresh-installer: + update: true + identity: + hostname: apollo + password: $5$8xH/luS/5i$EjrWRLUA4WbnGs.Vd/LQU6K7Pf7dIMOTpQ3ovPtCnSA + username: virgil + packages: + - rsync + - ca-certificates + - curl + - neovim + - fail2ban + - net-tools + - apt-transport-https + - htop + storage: + layout: + name: lvm + match: + size: smallest + sizing-policy: scaled + config: + - type: partition + id: boot-partition + device: root-disk + size: 1G + - type: partition + id: root-partition + size: 25G + storage: + layout: + name: lvm + match: + size: largest + config: + - type: partition + id: data-partition + size: 256G +# network: + version: 2 + renderer: networkd + ethernets: +# docking station adapter +# enx00e04c937c49: + addresses: + - 10.1.1.3/16 + routes: + - to: default + via: 10.1.70.1 + metric: 100 + on-link: true + nameservers: + addresses: [10.1.70.1] + ssh: + allow-pw: no + install-server: yes + authorized-keys: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDgBk3q6TDTaFWoipBo8pDppCHlAHBdqXSDNWmy+zS5dm2VwmoTnT+46Sjurzb+nJOSCZ5wWkLUT+zPRq/Y83PGYseocJdXGZGHaDIudU+pnTShDcfY1e2xSapdPmYBgnoU6aOGb4JvlmLzLblBwSiwcSRrBFKvN/0Zz4JpkzNMRArqNZpIQtjAo5VG5RjudISJE57pqhy2f3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.yaml b/ubuntu/user-data.ares.yaml index 891ebbf..aff9a77 100644 --- a/ubuntu/user-data.ares.yaml +++ b/ubuntu/user-data.ares.yaml @@ -28,16 +28,7 @@ autoinstall: size: 1G - type: partition id: root-partition - size: 14G - storage: - layout: - name: lvm - match: - size: largest - config: - - type: partition - id: data-partition - size: 256G + size: 25G # late-commands: - curtin in-target -- apt-get update @@ -77,4 +68,4 @@ autoinstall: # error-commands: - tar -czf /installer-logs.tar.gz /var/log/installer/ - - journalctl -b > /installer-journal.log \ No newline at end of file + - journalctl -b > /installer-journal.log diff --git a/ubuntu/user-data.artemis.yaml b/ubuntu/user-data.artemis.yaml index 3b6102c..871e5c3 100644 --- a/ubuntu/user-data.artemis.yaml +++ b/ubuntu/user-data.artemis.yaml @@ -20,12 +20,33 @@ autoinstall: - net-tools - apt-transport-https - htop - network: + storage: + layout: + name: lvm + match: + size: smallest + sizing-policy: scaled + config: + - type: partition + id: boot-partition + device: root-disk + size: 1G + - type: partition + id: root-partition + size: 25G + storage: + layout: + name: lvm + match: + size: largest + config: + - type: partition + id: data-partition + size: 256G +# network: version: 2 renderer: networkd ethernets: -# inline usb adapter - enxc8a3623a3640: # docking station adapter # enx00e04c937c49: addresses: