-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Module: Adding OpenBSD sysupgrade support #341
Module: Adding OpenBSD sysupgrade support #341
Conversation
The test
|
LGTM, @felixfontein @Andersson007 Could you please review this? Thanks in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs some sort of tests (I guess unit tests would be best, since CI doesn't have OpenBSD support).
The test
|
Hey, sorry, I got caught up with some things and haven't been able to take a look at this for a while. I see that @Akasurde made a commit in early-July for this module. Do you need any other modifications done to it? Thanks! |
e555094
to
00e7482
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know sysupgrade, so only some general remarks from my side.
See also the failed sanity tests (https://app.shippable.com/github/ansible-collections/community.general/runs/3327/1/tests, https://app.shippable.com/github/ansible-collections/community.general/runs/3327/4/tests) and the failed unit tests (https://app.shippable.com/github/ansible-collections/community.general/runs/3327/19/tests for example). |
The test
The test
The test
The test
The test
The test
|
9ab776a
to
c70992c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding version_added
field.
Adding note to fetch_only
that describes reboot behavior.
@precurse in case you added these changes, you didn't push them. |
@felixfontein Odd.. I wonder if Github got mixed up with my force push and your suggestions. Either way, I just added and pushed them properly now :) |
The test
The test
The test
|
* Adding types to sysupgrade documentation * Apply suggestions from code review * Adding installurl flag. Changing wording in example. * Use None for installurl by default * Changing word case in description * sysupgrade: use module structure recommended by Ansible unit test docs * Adding unit test for sysupgrade Signed-off-by: Andrew Klaus <andrew@aklaus.ca> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Felix Fontein <felix@fontein.de>
8eed190
to
035822a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Andersson007 @Akasurde any last comments? Otherwise I'll merge for the 1.1.0 release today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@felixfontein , no questions
@precurse thanks for the feature!
@precurse thanks a lot for doing this! |
* Adding types to sysupgrade documentation * Apply suggestions from code review * Adding installurl flag. Changing wording in example. * Use None for installurl by default * Changing word case in description * sysupgrade: use module structure recommended by Ansible unit test docs * Adding unit test for sysupgrade Signed-off-by: Andrew Klaus <andrew@aklaus.ca> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2aabf5e)
SUMMARY
This module will let users use OpenBSD's sysupgrade functionality with Ansible. This command is similar to syspatch, which is already in this repo, but handles upgrades between releases and snapshots.
ISSUE TYPE
COMPONENT NAME
sysupgrade
ADDITIONAL INFORMATION
This module doesn't currently allow for
check_mode
, as the script within OpenBSD doesn't currently allow support for checking if a version is available. This will likely be resolved in a future release.