Skip to content

Commit 0126f80

Browse files
authored
Merge pull request #115 from puppetlabs/repo_fix_arch
Repo fix arch
2 parents 1f5acfb + 15c4188 commit 0126f80

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

manifests/repos.pp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#
33
#
44
class docker::repos (
5-
$location = $docker::package_location,
6-
$key_source = $docker::package_key_source,
5+
$location = $docker::package_location,
6+
$key_source = $docker::package_key_source,
77
$key_check_source = $docker::package_key_check_source,
8+
$architecture = $facts['architecture'],
89
) {
910

1011
ensure_packages($docker::prerequired_packages)
@@ -18,15 +19,16 @@
1819
ensure_packages(['debian-keyring', 'debian-archive-keyring'])
1920

2021
apt::source { 'docker':
21-
location => $location,
22-
release => $release,
23-
repos => $package_repos,
24-
key => {
22+
location => $location,
23+
architecture => $architecture,
24+
release => $release,
25+
repos => $package_repos,
26+
key => {
2527
id => $package_key,
2628
source => $key_source,
2729
},
28-
require => Package['debian-keyring', 'debian-archive-keyring'],
29-
include => {
30+
require => Package['debian-keyring', 'debian-archive-keyring'],
31+
include => {
3032
src => false,
3133
},
3234
}

0 commit comments

Comments
 (0)