https://github.com/spirosoik/terraform-azure-modules
Reusable terraform Azure modules
https://github.com/spirosoik/terraform-azure-modules
ansible azure devops docker terraform
Last synced: about 1 year ago
JSON representation
Reusable terraform Azure modules
- Host: GitHub
- URL: https://github.com/spirosoik/terraform-azure-modules
- Owner: spirosoik
- License: apache-2.0
- Created: 2018-04-17T11:17:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T10:31:38.000Z (about 8 years ago)
- Last Synced: 2025-03-28T02:23:42.389Z (about 1 year ago)
- Topics: ansible, azure, devops, docker, terraform
- Language: HCL
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Terraform modules for Azure
===========
This repo includes reusable terraform modules for Azure for quick servers spin up.
This repo also shows a folder structure based on app and environment level. More specific:
`/` -> `example.com/production`, `example.com/staging` etc.
Modules
----------------------
- `docker_public_vm` - creates an Ubuntu VM which is provisioned with Ansible to setup it with Docker and docker-compose
- `virtual_network` - creates a Virtual network with two subnets, private and public
- `vm_storage` - create an Azure managed disk which can be attached in a VM.
VM Provisioning
----------------------
The docker public vm uses Ansible [here](https://github.com/spirosoik/terraform-azure-modules/tree/master/ansible) to install the followings:
- Docker
- docker-compose
The provisioning uses terraform [remote-exec](https://www.terraform.io/docs/provisioners/remote-exec.html) in order to wait the machine to be started and [local-exec](https://www.terraform.io/docs/provisioners/local-exec.html) to run the ansible playbooks.
In order to use the provisioner you should have installed the followings:
```
ansible-galaxy install angstwad.docker_ubuntu
ansible-galaxy install franklinkim.docker-compose
```
Also in
Example
-----
An example of modules and the recommended project structure can be found [here](https://github.com/spirosoik/terraform-azure-modules/tree/master/example.com)
## License
See the [LICENSE](LICENSE.md) file for license rights and limitations (Apache license 2.0).