Skip to content

Conversation

@hfenner
Copy link
Contributor

@hfenner hfenner commented Jan 7, 2026

This commit adds a complete solution for migrating all resources from one AAP instance to another, including:

  • migrate_aap_instance.yml: Main migration playbook that orchestrates the full export, import, and validation process across three phases

  • migration_vars.yml.example: Example configuration file with all available options, including vault encryption examples and multiple use cases

  • MIGRATION_GUIDE.md: Comprehensive 600+ line documentation covering:

    • Quick start guide and prerequisites
    • Detailed phase-by-phase migration process
    • All configuration options with examples
    • Best practices for before, during, and after migration
    • Troubleshooting common issues
    • Advanced scenarios (multi-stage, cross-version, selective resource)
  • Updated README.md with migration section linking to the guide

The migration playbook supports:

  • 46+ AAP resource types (Controller, EDA, Gateway)
  • Full or partial migrations (by organization or resource)
  • Post-migration validation and drift detection
  • Ansible Vault for credential security
  • Structured or flattened export formats
  • Optional cleanup of unmanaged resources

This leverages existing collection roles (filetree_create, filetree_read, object_diff, dispatch) to provide a turnkey migration solution.

What does this PR do?

How should this be tested?

Is there a relevant Issue open for this?

resolves #[number]

Other Relevant info, PRs, etc

This commit adds a complete solution for migrating all resources from one
AAP instance to another, including:

- migrate_aap_instance.yml: Main migration playbook that orchestrates the
  full export, import, and validation process across three phases

- migration_vars.yml.example: Example configuration file with all available
  options, including vault encryption examples and multiple use cases

- MIGRATION_GUIDE.md: Comprehensive 600+ line documentation covering:
  * Quick start guide and prerequisites
  * Detailed phase-by-phase migration process
  * All configuration options with examples
  * Best practices for before, during, and after migration
  * Troubleshooting common issues
  * Advanced scenarios (multi-stage, cross-version, selective resource)

- Updated README.md with migration section linking to the guide

The migration playbook supports:
- 46+ AAP resource types (Controller, EDA, Gateway)
- Full or partial migrations (by organization or resource)
- Post-migration validation and drift detection
- Ansible Vault for credential security
- Structured or flattened export formats
- Optional cleanup of unmanaged resources

This leverages existing collection roles (filetree_create, filetree_read,
object_diff, dispatch) to provide a turnkey migration solution.
@hfenner hfenner requested a review from a team as a code owner January 7, 2026 15:19
Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! LGTM. Just fix the two errors reported by the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants