Hello,
We are adopting ansible and as a proof of concept I converted some tasks to ansible playbooks. For example, we are using Fisheye tool for code reviews and I created playbooks for upgrading it. I would like to have some feedback about them.
We have two instance of that tool - one for production and one for qa purposes such as testing upgrades. The upgrade procedure is
- Export the data from the production instance
- Import it in the qa instance
- Upgrade the qa instance to a new version of the tool
- Test the new version in qa with the production data
- If tests are syccessful upgrade the production instance to the new version
While 4) involves mainly manual testing, the other points can be automated and I created two playbooks for them. The first one covers 1) and 2) - syncing qa instance with production data. I export production data in a compressed file with a command provided by the tool, then I move the file from the production box to the qa box and finally I import it to the qa instance using another command that comes from the tool:
fisheye-sync/site.yml