mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 10:55:00 +01:00
Add support for AArch64/ARM64 binaries
This commit is contained in:
parent
eb19c0ada2
commit
1f141fb368
1 changed files with 6 additions and 1 deletions
|
@ -31,13 +31,18 @@ class hashi_stack::repo (
|
||||||
Integer[0,1] $repo_gpgcheck = 0,
|
Integer[0,1] $repo_gpgcheck = 0,
|
||||||
Integer[0,1] $repo_enabled = 1,
|
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'] {
|
case $facts['os']['family'] {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
include apt
|
include apt
|
||||||
|
|
||||||
apt::source { 'HashiCorp':
|
apt::source { 'HashiCorp':
|
||||||
ensure => 'present',
|
ensure => 'present',
|
||||||
architecture => 'amd64',
|
architecture => $arch,
|
||||||
comment => $description,
|
comment => $description,
|
||||||
location => 'https://apt.releases.hashicorp.com',
|
location => 'https://apt.releases.hashicorp.com',
|
||||||
repos => 'main',
|
repos => 'main',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue