kopia: Add kopia_repository module#11752
Draft
munchtoast wants to merge 3 commits intoansible-collections:mainfrom
Draft
kopia: Add kopia_repository module#11752munchtoast wants to merge 3 commits intoansible-collections:mainfrom
munchtoast wants to merge 3 commits intoansible-collections:mainfrom
Conversation
felixfontein
reviewed
Apr 8, 2026
Collaborator
felixfontein
left a comment
There was a problem hiding this comment.
Thanks for your contribution! I've added some first comments.
Collaborator
There was a problem hiding this comment.
Please rename this to _kopia.py.
| # Copyright (c) 2026, Dexter Le <dextersydney2001@gmail.com> | ||
| # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
| # SPDX-License-Identifier: GPL-3.0-or-later | ||
|
|
Collaborator
There was a problem hiding this comment.
Suggested change
| # Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time. | |
| # Do not use this from other collections or standalone plugins/modules! | |
| - Repository password used to encrypt and decrypt repository contents. | ||
| - Required if O(state=created) or O(state=connected). | ||
| type: str | ||
| fingerprint_ssl: |
Collaborator
There was a problem hiding this comment.
I would use TLS instead of SSL. The protocol hasn't been called SSL for decades now :)
Suggested change
| fingerprint_ssl: | |
| fingerprint_tls: |
| fingerprint_ssl=dict(type="str"), | ||
| url=dict(type="str"), | ||
| throttle_operation=dict(type="str", default="get", choices=["set", "get"]), | ||
| backend=dict( |
Collaborator
There was a problem hiding this comment.
Should't backend also come from KOPIA_COMMON_ARGUMENT_SPEC?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SUMMARY
ISSUE TYPE
COMPONENT NAME
kopia
kopia_repository
ADDITIONAL INFORMATION