Add support for AArch64/ARM64 binaries (#36)

* Add support for AArch64/ARM64 binaries

* Update manifests/repo.pp

---------

Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com>
This commit is contained in:
Robert Grizzell 2023-11-30 17:50:15 -06:00 committed by GitHub
parent eb19c0ada2
commit 2e6986a13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',