I have a tower 3.1.5 and looking to build the latest AWX server.
Any pointers on how I might be able to move templates, jobs, credentials from tower?
I don’t know how tower differs from awx in that regard. But awx keeps everything in the postgresql and when I upgrade awx, i just point the new instance to the same db i was using before.
You could try to duplicate your db, then have the awx instance point to this copy. Theoretically, it should work, if there are no schema differences between versions or if tower didn’t do anything custom at the db level. It’s worth a try.
If that doesn’t work you may take a look at tower-cli to dump the assets from one and import to the other. Only down side is I don’t think you can export the credentials that way so you may be stuck recreating those.
You might also have to redo the base config like ad integration and system settings since I think it couldn’t grab those either.
Officially AWX doesn’t have a supported upgrade path so I think there’s a community project going to see if we can’t get a complete export of config, complete the upgrade and then restore all the config elements. I forget what exactly that project is called but if you google around you may find it.
This project, that consumes tower-cli, but also connects to the databases directly, might help:
https://github.com/autops/awx-migrate
(I’m the author, used that in december, currently not working on AWX projects though)
Hi Serge,
Great. What does it do with the database backup? Is it the pg_dump?
Look into the script:
It fetches the credentials, and decrypts them:
https://github.com/autops/awx-migrate/blob/master/awx-migrate#L173-L174
It will later uses those decrypted values to inject hem in the new
setup with tower-cli send.
It then fetches configuration settings from the old database:
https://github.com/autops/awx-migrate/blob/master/awx-migrate#L285
And then injects them in the new one:
https://github.com/autops/awx-migrate/blob/master/awx-migrate#L315
(except the ldap password, as I couldn't find out how to decrypt that value)
HTH
Serge