commit 8775707ad76f82fcde874b7e231878dea3b4424b
parent 17fa2ef6e26634657f35702de0271c256bd39969
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Tue, 9 Jul 2024 23:18:08 +0200
feat: bao version 2.0.0-beta20240618
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/bootstrap.sh b/bootstrap.sh
@@ -34,7 +34,10 @@ echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://
# Install packages
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y jq podman cloud-init \
- "consul=${CONSUL_VERSION}-1" "vault=${VAULT_VERSION}-1" "nomad=${NOMAD_VERSION}-1"
+ "consul=${CONSUL_VERSION}-1" "nomad=${NOMAD_VERSION}-1"
+
+curl -L -o openbao.deb "https://github.com/openbao/openbao/releases/download/v${BAO_VERSION}/bao_${BAO_VERSION}_linux_arm64.deb"
+apt install ./openbao.deb
# Configure insecure local registry
cat << EOF > /etc/containers/registries.conf
diff --git a/hashi-pi.pkr.hcl b/hashi-pi.pkr.hcl
@@ -141,9 +141,9 @@ variable "vault_transit_token" {
sensitive = true
}
-variable "vault_version" {
+variable "bao_version" {
type = string
- default = "1.17.1"
+ default = "2.0.0-beta20240618"
}
source "arm" "hashipi" {
@@ -198,7 +198,7 @@ build {
"AUTHORIZED_KEYS=${var.authorized_keys}",
"NOMAD_VERSION=${var.nomad_version}",
"CONSUL_VERSION=${var.consul_version}",
- "VAULT_VERSION=${var.vault_version}"
+ "BAO_VERSION=${var.bao_version}"
]
}