Closed rohitthakur2590 closed 1 month ago
Version needs to be changed to a semver prod version: 1.0.0+
@arnav3000
@rohitthakur2590 Initial pass of items that need resolution (subject to change)
repository management
issue here. Reach out to @Andrew Block
in RH slack with any migration questions. @rohitthakur2590 Checking in on this issue! Any updates on the final checklist items ?
This is passing all checklist items! Posting a message in the cop Slack channel for immediate sign-off.
so first off it looks like this role just does one thing which makes me wonder if it is worth creating a whole collection over this instead of putting it inside an already created collection. next the layout of the role does not match the standard layout of a role. another issue is the name of the role itself called run which does not explain what it does, but this goes back to the issue of it only having a single purpose. there might be more but I stopped looking after seeing these issues
The use case seems sound but I'm struggling with the structure of the one role:
run
role with methods
which seem to be actually different actions, would probably be better split into multiple rolesincludes
directory next to the tasks
one is very uncommon, and I don't grasp the added value compared to the more standard approach of having everything under tasksSo, basically the same as @djdanielsson but with different suggestions (and wording).
I also noticed that the inventory in the "Testing" section is probably wrong, the first line should probably read [network_hosts:children]
as it seems to contain other groups.
@djdanielsson Thanks for your insightful feedback. In addition to the platform-agnostic restore operation capability, our network.backup and network.restore collections also incorporate SCM support, currently including Github/tagging, with plans for future enhancements such as diff-based restore and support for GitLab and S3.
The decision to maintain separate network.backup and network.restore collections stemmed from our aim for better organization and scalability. By segregating these functionalities, we can ensure that as the network backup and restore processes evolve and become more intricate, each collection can independently scale and adapt to changes.
@ericzolf Regarding the role of actions, it aligns with the approach/pattern we've adopted for networking-validated content. Your point about organizing and naming task files is well taken, and we'll definitely consider improvements in an upcoming release.
cc @cidrblock any thoughts on this ?
I still don't grok the need to split backup from restore, where I'd expect that they're tightly related and need to stay aligned to work properly. Collections are generally aligned along technologies, not actions, that's what roles are meant for. And I can't imagine why/how the two would need different lifecycles, especially as they're maintained by the same persons. Validated content is aimed at providing content for our customers to reuse in their automation, we can't swallow all our good practices or we become inconsistent.
Closing this as we have consolidated the backup and restore with the updated file structures.
Candidate Name
network.restore
Link to Github Repo
https://github.com/redhat-cop/network.restore
Review Due By
CHECKLIST
Business Checks:
Content Viability
Content Duplication
Technical Checks:
Content Conformity
Content Compliance
Content Testing/Validation
ansible-lint
“Production” profile in an active Github workflow on the repositoryansible-lint
“Production” profile