Commit b40bb10c authored by Finn's avatar Finn

misc cleanup

parent 0e9d35f6
Pipeline #3082 failed with stage
in 13 minutes and 46 seconds
......@@ -2,12 +2,13 @@ build:
tags: [kvm]
stage: build
- sudo apt update && sudo apt install -y rsync
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/".insteadOf "git@${CI_SERVER_HOST}:"
- git -C .. clone git@${CI_SERVER_HOST}
- make image-host.qcow2
- qemu-img info image-host.qcow2
- xz -vzT 0 image-host.qcow2
- xz -zT 0 image-host.qcow2
- xz -l image-host.qcow2.xz
- sha256sum image-host.* | tee SHA256SUMS
- rsync image-host.qcow2.xz SHA256SUMS rsync://
- rsync image-host.qcow2.xz SHA256SUMS rsync://
......@@ -5,11 +5,12 @@ ssh_key
ssh-keygen -t ed25519 -f ssh_key -qN ""
http/user-data: ../common/user-data-template.yaml
sed "s#SSH_KEY#$(shell cat" ../common/user-data-template.yaml > http/user-data
image-host.qcow2: http/user-data files/ scripts/ image-host.json
packer build -timestamp-ui -var-file ../common/vars.json image-host.json
image-host.qcow2.xz: image-host.qcow2
xz -zT 0 image-host.qcow2
rm -f image-host.qcow2.xz || true
xz -zvT 0 image-host.qcow2
choose-mirror-bin mirror/http/proxy string
d-i netcfg/get_hostname string image-host
d-i apt-setup/use_mirror boolean true
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/vda
d-i keymap select us
d-i mirror/country string manual
d-i mirror/http/directory string /debian
d-i mirror/http/hostname string
d-i mirror/http/proxy string
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i passwd/root-login boolean false
d-i passwd/root-password-again password vagrant
d-i passwd/root-password password vagrant
d-i passwd/make-user boolean false
d-i passwd/username string vagrant
d-i pkgsel/include string openssh-server
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
d-i preseed/late_command string sed -i '/^deb cdrom:/s/^/#/' /target/etc/apt/sources.list
apt-cdrom-setup apt-setup/cdrom/set-first boolean false
apt-mirror-setup apt-setup/use_mirror boolean true
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, ubuntu-server
instance-id: image-host
local-hostname: image-host
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment