sous-chefs / consul

Development repository for the consul cookbook

Home Page:https://supermarket.chef.io/cookbooks/consul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consul_installation_package uses action :upgrade which ignores version on redhat

LXXero opened this issue · comments

libraries/consul_installation_package.rb is using action :upgrade on the package create action. This ignores version for the yum provider, and in turn means this cookbook always is upgrading consul to the latest version regardless of the version specified. :install would be a much nicer default action, but making this configurable would also be nice.

https://docs.chef.io/resource_yum.html
:upgrade
Install a package and/or ensure that a package is the latest version. This action will ignore the version attribute.

I'm running in to this same issue as well. I think the :install action would be okay.

Closing due to inactivity.

If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!

Thanks,
Sous-Chefs

commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.