sensu / uchiwa-chef

Other
33 stars 40 forks source link

Package version automatically updated after `apt-get ugrade` #37

Open jwmarshall opened 9 years ago

jwmarshall commented 9 years ago

As stated in the title I have an issue where Uchiwa (installed from package) is upgraded to the latest version when apt-get upgrade is run. This wouldn't be a terrible issue if I wasn't installing a specific version via attributes, also the latest version seems to have some bugs and doesn't allow me to silence alarms.

This cookbook should probably pin the version used by apt. (Im using Ubuntu 14.04 FYI)

See: https://help.ubuntu.com/community/PinningHowto

amdprophet commented 9 years ago

Hi @jwmarshall, are you using the http or repo recipe to install Uchiwa? How are you currently overriding the version attribute?

amdprophet commented 9 years ago

Oh sorry, I understand what you're describing now. I'll need to implement this functionality in the cookbook. Thanks for reporting the issue!

jwmarshall commented 9 years ago

I'm using default['uchiwa']['version'] = '0.7.1-1' specifically. I just looked at the apt cookbook and there is an LWRP for package preferences.

https://github.com/opscode-cookbooks/apt#apt_preference

jwmarshall commented 9 years ago

FWIW I upgraded to the latest uchiwa, the problem I had was a web sockets issue with my proxy. So the bug above is less relevant for me now. I do appreciate your time and effort though.

:)

amdprophet commented 9 years ago

@jwmarshall I'm glad you got it working. I will be implementing the apt_preference resource soon to prevent others from running into similar issues in the future.