-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Updating staging file download to use the version and symlink #202
Conversation
… symlink to the artifact for allowing new version installations
@solarkennedy and @aj-jester can you guys give some thoughts on this? |
@Split3 hey, first of all, great solution! so simple than an of the others 😃 One thing I'm noticing is even though Can you verify this behavior on your end as well? Before upgrade:
After upgrade:
After restart:
|
Thanks @aj-jester, yes we will need the notify to restart accordingly as I mentioned in the first comment, just wanted to get us all to take a first look at it to ensure it was something we'd consider before fine tuning all the pieces together. So yes I also verified that the notify is needed, I can add that in now. As for tests, we currently already test that the proper file is downloaded, so we could also add the necessary test for the symlink, are there any others that would be desired? |
@aj-jester Tests added for the file along with ensuring that it should notify |
@Split3 ah! didn't see the updated comment 😊 From my side this looks good! 🚄 LGTM |
@solarkennedy you ok to merge this in? |
@aj-jester are you ok to merge this in or should we wait for @solarkennedy to provide some feedback? |
@Split3 When I use this patch on CentOS 6.1 Vagrant with Puppet 3.8.4 I get following warning:
It seems that you did forget to |
@Split3 I'm ok to merge this in. Of course if @solarkennedy has any feedback we can always open up another PR 😄 |
@das-vinculum hmm, I didn't get that warning, but yes I can include that as well, let me add that in. |
@das-vinculum change is in if you'd like to verify on your side |
Updating staging file download to use the version and symlink
Thanks for this. I also am not really sure where best to do the notify_service logic. I kinda like to have that stuff in the init.pp so anything in the install class can notify the service (or not). This wfm. |
@solarkennedy thats a good idea. |
@Split3 The warning is now gone, thank you very much. |
This is the same approach used by consul-template to allow for the version of consul to be upgraded/downgraded accordingly by downloading the artifact zip to a versioned folder and just symlinking the binary to the appropriate one.
This is also similar to how homebrew on Mac works as well.
I'm sure there are a few pieces missing, like service restart and such is probably desired to have on there as well, just didn't want to dive too deep if we didn't think this is a viable solution.