feat(vm-gitops-export): capture VM defs for GitOps#6
Closed
stevefulme1 wants to merge 11 commits into
Closed
Conversation
Move from openshift_virtualization_migration repo — this is day 2 ops functionality for exporting VM definitions to a GitOps repository. Note: This role references vm_collect which may need to be ported or added as a cross-collection dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closed
7 tasks
…-ansible manage deps/commands
sabre1041
reviewed
May 6, 2026
sabre1041
left a comment
There was a problem hiding this comment.
@stevefulme1 this is really good content. A few comments
- Do we want to provide the option for allow users to specify additional keys that should be removed from captured manifests. We define a default set here
- We have support for providing a token via HTTP(s). Do we also want to also support user/password?
| - name: Export VM Definitions to GitOps Repository | ||
| hosts: localhost | ||
| connection: local | ||
| gather_facts: false |
There was a problem hiding this comment.
since we are referencing ansible_date_time, we will need to keep gather_facts: true
…s, user/password auth
sabre1041
reviewed
Jun 2, 2026
sabre1041
left a comment
There was a problem hiding this comment.
@stevefulme1 saw that this PR was closed. Was that accidental or are you looking to implement a different approach?
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
vm_gitops_exportrole and playbook to capture running VirtualMachine definitions from OpenShift and store cleaned manifests in a Git repositoryMoved from
Originally submitted as redhat-cop/openshift_virtualization_migration#16 — relocated here as this is day 2 ops functionality (managing VM manifests post-migration via GitOps), not migration logic.
FQCN updated from
infra.openshift_virtualization_migrationtoinfra.openshift_virtualization_ops.Note: This role references
vm_collectviainclude_role. Thevm_collectrole currently lives in the migration collection — it may need to be ported to ops or referenced as a cross-collection dependency.Test plan
yamllintpassesansible-lint --offlinepasses production profile🤖 Generated with Claude Code