Bug Fix
- Fixed an issue where the IP address of the new VM is not available right away, causing downstream Ansible failures.
Testing
Tested with this ops repo: bitovi/operations-example-docker-azure-vm
Additional Changes and Enhancements
- Elevated all Docker env vars into .docker_env file
- DRYed out a lot of path strings into variables
- Created isDebugMode and isDestroyMode helper functions for use throughout the codebase
- Ideally these can be elevated into commons or similar
- Helper funcs have unit tests!
- Need to build a workflow for the action repo to run them
- Changed a lot of hardcoded filenames in "running " to $(basename $0)
- Bumped required TF version to >0.13
- The magic Ansible config file from Leo
- Split main.tf into several more specific tf files
- Use azure_linux_vm instead of azure_vm
- Requires the use of the _openssh varieties of the ssh_key resources.
Development Links
- Fixes #10
- Closes DEVOPS-821