-
Notifications
You must be signed in to change notification settings - Fork 290
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
redhat version fix #615
redhat version fix #615
Conversation
|
Nice! I couldn't figure out why my runs were failing after updating the repo with yum seeing the new software fine. The only piece I had to make a modification to was here:
Not sure if my puppet version (1.7.1) is causing it, but I don't have a |
|
@rgeniesse cheers for the heads up! |
|
Sweet! They must have depreciated the other fact. I can't seem to find a search hit saying so though. The only other thing I have noticed is that most of my clients are on
And an upgrade to 0.27.1-2 works:
The RPM is definitely in the repo: http://repositories.sensuapp.org/yum/5/x86_64/ But I can't even find it on the command line:
|
|
blurgh. I feared this might happen. I'll take a look and see if I can work out whats wrong |
|
@andyroyle @rgeniesse sorry for the confusion here, allow me to explain. Sensu 0.27 is the first Sensu release built by us using Chef's Omnibus tools. One effect of this change is that version strings in the RPM metadata now include a This means
In the Sensu Chef cookbook I've implemented a helper method for generating appropriate version strings, perhaps a similar implementation might be useful here. |
|
Thanks @cwjohnston, that clears up the behavior I am seeing. I just upgraded all my Sensu agents today, mix of CentOS 5/6/7, using the code @andyroyle provided. Those all worked. My only issue now is we have a few Amazon Linux nodes out there, but I haven't had time to dig into how to resolve those. Maybe a fact override somewhere. Or maybe they'll just have to sit on 0.26.5 for now. Open to any final solution and happy to test people's ideas. |
|
This looks great to me. Can you fix the conflicts? |
|
rebased 👍 |
|
@andyroyle @jaxxstorm I think merging this has broken tests introduced in #645: Automatically appending the OS major version without the ability to override it makes it impossible for folks like @rgeniesse to install the Changes in #645 were intended to allow the version parameter value to include the |
The redhat version numbers now have the os version appended, which when combined with this version number validation means that
0.28.0-1.el7is rejected by the module, but0.28.0-1won't select the package correctly from the yum repo.The options are: either remove the version number validation in init.pp, or transform the centos version number to include the
.el5,.el6or.el7suffix.In the interests of making it easier to have one version that applies to all environments (debian, redhat, windows, etc) I've opted for the latter.
I'm not sure what side-effects this might have, so let me know if you think this is a terrible idea.