Fix for issue #39
Minimal Ubuntu installs require a separate package to use https for apt repos, which the docker image uses
This commit is contained in:
Родитель
5405f65fe6
Коммит
26d100b7d5
|
@ -12,6 +12,10 @@ class docker::install {
|
|||
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
|
||||
ensure_packages(['apt-transport-https'])
|
||||
Package['apt-transport-https'] -> Package['docker']
|
||||
|
||||
if ($docker::use_upstream_package_source) {
|
||||
include apt
|
||||
apt::source { 'docker':
|
||||
|
|
|
@ -17,6 +17,7 @@ describe 'docker', :type => :class do
|
|||
|
||||
context 'with no parameters' do
|
||||
it { should contain_class('apt') }
|
||||
it { should contain_package('apt-transport-https').that_comes_before('Package[docker]') }
|
||||
it { should contain_package('docker').with_name('lxc-docker').with_ensure('present') }
|
||||
it { should contain_apt__source('docker').with_location('https://get.docker.io/ubuntu') }
|
||||
it { should contain_package('linux-image-extra-3.8.0-29-generic') }
|
||||
|
|
Загрузка…
Ссылка в новой задаче