diff --git a/manifests/repos.pp b/manifests/repos.pp index 3436ec733..9863bb4ff 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -17,14 +17,19 @@ $key_source = $docker::package_key_source $package_key = $docker::package_key } + package {['debian-keyring', 'debian-archive-keyring']: + ensure => installed, + } apt::source { 'docker': - location => $location, - release => $docker::package_release, - repos => $docker::package_repos, - key => $package_key, - key_source => $key_source, - required_packages => 'debian-keyring debian-archive-keyring', - include_src => false, + location => $location, + release => $docker::package_release, + repos => $docker::package_repos, + key => { + id => $package_key, + source => $key_source, + }, + require => Package['debian-keyring', 'debian-archive-keyring'], + include => { 'src' => false, }, } $url_split = split($location, '/') $repo_host = $url_split[2] diff --git a/metadata.json b/metadata.json index bd858fec4..f59c693d2 100755 --- a/metadata.json +++ b/metadata.json @@ -9,7 +9,7 @@ "issues_url": "https://github.com/garethr/garethr-docker/issues", "dependencies": [ {"name":"puppetlabs/stdlib","version_requirement":">= 4.1.0"}, - {"name":"puppetlabs/apt","version_requirement":">= 1.8.0 <= 3.0.0"}, + {"name":"puppetlabs/apt","version_requirement":">= 2.1.0"}, {"name":"stahnma/epel","version_requirement":">= 0.0.6"} ], "data_provider": null,