diff --git a/manifests/package/debian.pp b/manifests/package/debian.pp index 8a8022669..4657233d5 100644 --- a/manifests/package/debian.pp +++ b/manifests/package/debian.pp @@ -28,12 +28,23 @@ undef => "https://nginx.org/packages/${distro}", default => $repo_source, } - apt::source { 'nginx': - location => $stable_repo_source, - repos => 'nginx', - key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, - release => $release, - architecture => $facts['os']['architecture'], + if $facts['os']['architecture'] == 'aarch64' { + apt::source { 'nginx': + location => $stable_repo_source, + repos => 'nginx', + key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, + release => $release, + architecture => 'arm64', + } + } + else { + apt::source { 'nginx': + location => $stable_repo_source, + repos => 'nginx', + key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, + release => $release, + architecture => $facts['os']['architecture'], + } } } 'nginx-mainline': { @@ -41,12 +52,23 @@ undef => "https://nginx.org/packages/mainline/${distro}", default => $repo_source, } - apt::source { 'nginx': - location => $mainline_repo_source, - repos => 'nginx', - key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, - release => $release, - architecture => $facts['os']['architecture'], + if $facts['os']['architecture'] == 'aarch64' { + apt::source { 'nginx': + location => $mainline_repo_source, + repos => 'nginx', + key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, + release => $release, + architecture => 'arm64', + } + } + else { + apt::source { 'nginx': + location => $mainline_repo_source, + repos => 'nginx', + key => { 'id' => '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' }, + release => $release, + architecture => $facts['os']['architecture'], + } } } 'passenger': { @@ -54,11 +76,21 @@ undef => 'https://oss-binaries.phusionpassenger.com/apt/passenger', default => $repo_source, } - apt::source { 'nginx': - location => $passenger_repo_source, - repos => 'main', - key => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' }, - architecture => $facts['os']['architecture'], + if $facts['os']['architecture'] == 'aarch64' { + apt::source { 'nginx': + location => $passenger_repo_source, + repos => 'main', + key => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' }, + architecture => 'arm64', + } + } + else { + apt::source { 'nginx': + location => $passenger_repo_source, + repos => 'main', + key => { 'id' => '16378A33A6EF16762922526E561F9B9CAC40B2F7' }, + architecture => $facts['os']['architecture'], + } } package { $passenger_package_name: