packer: update build system

Adding TPM tooling, dnsmasq.
This commit is contained in:
2023-04-13 22:14:39 -07:00
parent 581b3972d1
commit 2528abf8c6
13 changed files with 147 additions and 100 deletions

View File

@@ -2,13 +2,20 @@
set -euxo pipefail
echo "==> Setting nameserver"
echo "[+] setting nameserver"
rm /etc/resolv.conf
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
echo "==> installing base updates"
echo "[+] installing base packages"
apt-get -y update
apt-get -y install ansible apt-transport-https ca-certificates rng-tools
echo "[+] installing TPM tooling"
apt-get -y install libtpms-dev tpm2-tools tss2
echo "[+] removing unused packages"
apt-get -y remove fake-hwclock snapd
echo "[+] cleaning apt install"
apt-get -y clean
apt-get -y autoremove

View File

@@ -2,4 +2,10 @@
set -euxo pipefail
apt-get -y install picocom wpasupplicant
export DEBIAN_FRONTEND=noninteractive
echo "[+] installing cdev node packages"
apt-get --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y install dnsmasq picocom wpasupplicant
echo "[+] installing tailscale"
curl -fsSL https://tailscale.com/install.sh | sh