Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_version ? #955

Open
motilevy opened this issue Jan 4, 2018 · 1 comment
Open

default_version ? #955

motilevy opened this issue Jan 4, 2018 · 1 comment

Comments

@motilevy
Copy link

motilevy commented Jan 4, 2018

Cookbook version

3.0.0

Chef-client version

12.20.3

Platform Details

oracle linux 7.4

Scenario:

my install fails because there's a newer version :

      yum_package[docker-ce] (/var/chef/cache/cookbooks/docker/libraries/docker_installation_package.rb line 19) had an error: Chef::Exceptions::Package: Installed package docker-ce-17.12.0.ce-1.el7.centos is newer than candidate package docker-ce-17.09.0.ce-1.el7.centos

Steps to Reproduce:

run chef docker_service without a version

docker_service 'default' do
  action [:create, :start]
  install_method 'package'
  package_name 'docker-ce'
end

Expected Result:

Not having to specify a version, it should default to the latest ?

Actual Result:

run fails

@docwhat
Copy link
Contributor

docwhat commented Mar 4, 2019

I also have the use case that I need the latest version in the (cached) repository.

Otherwise it is fighting the automatic security updates performed weekly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants