add packer ubuntu board generator

This commit is contained in:
2023-04-12 04:21:40 +00:00
parent a3403b0fc3
commit 6943facc81
16 changed files with 666 additions and 7 deletions

11
packer/scripts/install-base.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euxo pipefail
echo "==> Setting nameserver"
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
echo "==> installing base updates"
apt-get -y update
apt-get -y install ansible apt-transport-https ca-certificates
apt-get -y clean