diff --git a/manifests/install.pp b/manifests/install.pp index 566bb700..039effbe 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -80,10 +80,6 @@ ensure => $ensure, name => $docker::docker_package_name, })) - ensure_resource('package', 'docker-ce-cli', merge($docker_hash, { - ensure => $ensure, - name => $docker::docker_ce_cli_package_name, - })) if $ensure == 'absent' { ensure_resource('package', $dependent_packages, { diff --git a/spec/shared_examples/install.rb b/spec/shared_examples/install.rb index d8e31bdc..c6e08138 100644 --- a/spec/shared_examples/install.rb +++ b/spec/shared_examples/install.rb @@ -59,12 +59,6 @@ 'name' => values['docker_package_name'], ) } - it { - is_expected.to contain_package('docker-ce-cli').with( - 'ensure' => ensure_value, - 'name' => _params['docker_ce_cli_package_name'], - ) - } if ensure_value == 'absent' _params['dependent_packages'].each do |dependent_package|