-
-
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
Switching from staging to archive module #243
Conversation
This looks great! I'm happy we can finally move to the @aj-jester had previously attempted this and found some gotchas: It sounds like this may be potentially disruptive to some, but I think long term we have to do it. |
The only gotcha I think we need to be concerned with is the first run one. And I think we can get around this by specifying the install path to be the same one that is used previously by staging /opt/staging. This is specified by the install_path variable that is set. So I think that would probably get us around that issue if that is the only major concern. It would be possible for us to also possibly build in a check for the staging folder path and if that version exists let everything download and relink but just not restart. That should be adequate as well. I'm open to either solutions you guys want to go with. It might be more challenging changing the notify as it might not be in quote and accessible, but we could see about cancelling the refresh (not sure I've done that before though) |
Another option would be to use the consul_version fact we have to see if it is the same version that is being downloaded and relinked and not reload if it is. |
…ve module instead
060b0b6
to
67e0d57
Compare
Ok added additional tests and rebased. |
Also tested this on a few systems and archive downloaded the artifact and extracted, and updated the symlink but didn't restart the service. So I think we've covered the biggest concern. |
@Split3 I've uploaded a new commit to this branch that fixes the integration tests. (`bundle exec rake beaker) It looks like thew web_ui download gets installed into |
@solarkennedy Yes I kept the same functionality we had previously to use the symlinks for both the executable along with the ui so that is expected. |
@solarkennedy Thanks for fixing the acceptance tests, any reason we don't run those are part of travis builds? Sorry wasn't running those locally since I didn't see them as part of travis. |
@solarkennedy so are we good here now? |
I'm very sick right now and I don't have a recovery eta. Please continue
|
Sorry to hear @solarkennedy, rest up and get better. I'll go ahead and merge this in and we can make adjustments as needed. |
Since the staging module won't be receiving any TLC anymore we'd probably do well to upgrade to the module that replaces it, the puppet/archive module. This will provide checksum support down the road (currently somewhat experimental with urls).