https://github.com/selfscrum/terraform-hcloud-routeros-router
Terraform code to seamlessly integrate a RouterOS router into a Hetzner Cloud network.
https://github.com/selfscrum/terraform-hcloud-routeros-router
Last synced: 8 months ago
JSON representation
Terraform code to seamlessly integrate a RouterOS router into a Hetzner Cloud network.
- Host: GitHub
- URL: https://github.com/selfscrum/terraform-hcloud-routeros-router
- Owner: selfscrum
- License: mit
- Created: 2020-11-13T21:59:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T22:16:04.000Z (about 5 years ago)
- Last Synced: 2024-11-13T10:37:48.000Z (about 1 year ago)
- Language: HCL
- Size: 234 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hcloud - terraform-hcloud-routeros-router
README
# terraform-hcloud-routeros-router
Terraform code to seamlessly integrate a RouterOS router into a Hetzner Cloud network.
Mikrotik.com provides a software-based router solution as a boot image, which we use here to build fully automated a router box in Hetzner Cloud.
Terraform provisioniers enable this automation. The installation code relies on an underlying Ubuntu-18.04 on the to-be-installed router as well as on the terraform runner node. The code is tested with Terraform Cloud but should work in local environments too.
Prerequisite is the availability of a C Compiler for the downloaded `sshpass` command. It needs to be built on the spot since Terraform Cloud allows no persistent custom environments.
When running in TFC, the code is here a little flaky since it requires Terraform Cloud runners to provide an Ubuntu environment which is not a guaranteed property of Terraform Cloud. Local runners should work well since you can control how they are set up.
As well, we do have of course the 1-2 seconds interval where we have RouterOS running with an unprotected admin account in the cloud since the softare comes with an admin account with password. However, the code will create a reasonable secured router configuration much quicker than a human operator can.
See [selfscrum/terraform-hcloud-routeros-router-configuration](https://github.com/selfscrum/terraform-hcloud-routeros-router-configuration) for an additional simple router configuration module.
Enjoy!
-selfscrum
