kopia_policy: Add module - #12358
Conversation
- Manage Kopia snapshot policies (set, delete, list, show) via the Kopia CLI. - Extend REPOSITORY_STATE_MAP with policy state entries (set, shown). - Extends community.general._kopia doc fragment for shared password and config options. - Uses fixed args for read-only _get() list_policies method.
df94041 to
4ca2405
Compare
| short_description: Manage Kopia snapshot policies | ||
| author: | ||
| - Dexter Le (@munchtoast) | ||
| version_added: "13.1.0" |
There was a problem hiding this comment.
| version_added: "13.1.0" | |
| version_added: "13.4.0" |
update by @russoz : bump up verison to 13.4.0
| - Supports setting, deleting, showing, and listing policies. | ||
| - Policies control retention, scheduling, file exclusions, and compression for snapshots. |
There was a problem hiding this comment.
I don't think it makes sense to split this up into two paragraphs.
| - Supports setting, deleting, showing, and listing policies. | |
| - Policies control retention, scheduling, file exclusions, and compression for snapshots. | |
| - Supports setting, deleting, showing, and listing policies. | |
| Policies control retention, scheduling, file exclusions, and compression for snapshots. |
| listed: Lists all defined policies. | ||
| shown: Displays the effective policy for O(target), including inherited values. |
There was a problem hiding this comment.
listed and shown are not allowed states. These should be implemented in an _info module.
There was a problem hiding this comment.
I'm going to create a separate PR for kopia_info, thank you
This comment was marked as outdated.
This comment was marked as outdated.
russoz
left a comment
There was a problem hiding this comment.
hi @munchtoast
Thanks for your continued work on this! A couple of comments
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Thanks for your feedback! |
|
Failures in nox session |
| keep_latest: | ||
| description: | ||
| - Number of most-recent snapshots to keep. | ||
| - Pass C(inherit) to remove this override. |
There was a problem hiding this comment.
You missed other occurrences.
SUMMARY
Add kopia_policy ansible module. Split from #12187
ISSUE TYPE
COMPONENT NAME
kopia_policy
ADDITIONAL INFORMATION