autops / awx-migrate

Tool to migrate AWX to a new instance
https://www.autops.eu
Apache License 2.0
92 stars 24 forks source link
ansible awx awx-cli backup-utility migrate passwords secrets tower-cli

Welcome to Autops awx-migrate

awx-migrate is a command line tool for Ansible AWX. It leverages the tower-cli command, makes a full backup of an AWX instance, and adds the secrets to the exported credentials, which tower-cli leaves empty.

It then dumps the whole export including credential secrets in json to stdout, which you can redirect to a file. It also takes all config settings from the database - including LDAP settings and adds or updates them in a new instance.

This tool allows you to fully migrate an AWX setup, and is a workaround for not being able to upgrade AWX. (See https://github.com/ansible/awx/blob/devel/DATA_MIGRATION.md)

For more information, on tower-cli look at http://tower-cli.readthedocs.io.

Things that are not migrated

Requirements

Python

Configuration

AWX - separately configure how to connect to both the old and the new instance

and this for both the source and destination AWX instance and its postgresql database

How-to

Bugs

Warning

This script was written for and tested in a specific setup and particular environment, lot's of issues or bugs can still arise