From 1f141fb3683febafe0ebd086b6dd58e78c374af6 Mon Sep 17 00:00:00 2001 From: Robert Grizzell Date: Wed, 29 Nov 2023 20:29:22 -0600 Subject: [PATCH] Add support for AArch64/ARM64 binaries --- manifests/repo.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/repo.pp b/manifests/repo.pp index 15d64a4..247d072 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -31,13 +31,18 @@ class hashi_stack::repo ( Integer[0,1] $repo_gpgcheck = 0, Integer[0,1] $repo_enabled = 1, ) { + $arch = $facts['os']['architecture'] ? { + 'aarch64' => 'arm64', # 'aarch64' is official, but Hashicorp uses 'arm64' + default => $facts['os']['architecture'] + } + case $facts['os']['family'] { 'Debian': { include apt apt::source { 'HashiCorp': ensure => 'present', - architecture => 'amd64', + architecture => $arch, comment => $description, location => 'https://apt.releases.hashicorp.com', repos => 'main',