Add non-blocking deployment script #285
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This patch adds a script as described in my comment in T410730 that can assist with deployment. I've left out GitHub Actions integration for now, but I can add that later if we think it's a good idea.
@don-vip I haven't tested this script against the encoders. However, I did test most of it against another machine on my network with the exception of lines 50-58 ofdeploy.sh. If you're okay with me testing it or you want to do it, please let me know. If we can test this against a real encoder instance I would feel more comfortable taking this PR out of draft status.Update: I've tested this against
encoding01andencoding02after making some fixes and it appears to be working the way I expect.Configuration
This script relies heavily on environment variables since that would make it easier to work with in a CI/CD workflow if/when we implement something like that.
V2C_USERNAME: The ssh username to use when connecting to the encoderV2C_CONSUMER_KEY: Value that gets substituted into the puppet manifestV2C_CONSUMER_SECRET: Value that gets substituted into the puppet manifestV2C_REDIS_PW: Value that gets substituted into the puppet manifestChanges
deploy.shBash script to assist with deployments