Git Product home page Git Product logo

ansible-tower-export's Introduction

Tower to AAP migration

Use

Update vault.yml and inventory to match your environment details.

Run this command: ANSIBLE_VAULT_PASSWORD=<password to the vault.yml file in this repo> ansible-navigator run awx_secrets.yml --eei registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel9:latest -m stdout -i inventory

Importing

Throw all those json files into tower-credential-export/vars/ and run the awx_import.yml playbook. This does require the infra.controller_configuration collection, so build an EE with it or install it and run it locally.

SANITIZE your input files manually (i.e. delete the admin user if you don't want to overwrite it and break your AAP install, for instance)

Disclaimer

Listen, this is a terrible idea and an ugly workaround to try to bring objects out of an Ansible Tower database into a configuration as code snippet so that they can be imported into an Ansible Automation Platform instance where the database can't be updated with a lift and replace (i.e. in an AAP managed service).

But it did work for me once, so there's that.

Things I've seen happen

We're doing funny things with delegation and remote execution. You might need to add additional environment variables to your psql commands. It's a mess. But it did work... just with some extra effort.

Issue reporting

Feel free to, just don't expect a response.

Pull requests

Sure! Why not?

Support

None. Maybe a moral support giphy in chat but that's probably the limit.

ansible-tower-export's People

Contributors

bontreger avatar

Stargazers

Anthony Loukinas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.