Community discussions

MikroTik App
 
lp0PrinterOnFire
just joined
Topic Author
Posts: 2
Joined: Wed Dec 22, 2021 8:35 pm

Terraform Provider RouterOS

Wed Dec 22, 2021 8:44 pm

Hey all - I recently posted over on r/Mikrotik about the RouterOS terraform provider I've been developing, and was advised that I should also post here about it.

So, for those who are interested, and use Terraform (or are looking to start using it):
Here's the provider on my GitHub repo: https://github.com/GNewbury1/terraform- ... r-routeros
Here's the provider on the Terraform Registry: https://registry.terraform.io/providers ... ros/latest

It's tested against RouterOS 7.1, 7.1.1, and 7.2rc1, and makes use of the shiny new REST API. As the rest API only exposes values as strings, even when they shouldn't be (eg, list of addresses for a Wireguard interface), I've done type conversions for Terraform so that it should make some more sense. The functionality so far is relatively basic, but I'm actively developing it since I initially released it 9 days ago.

Any questions, feel free to let me know! Feature requests and bug reports are most welcome!

PS: If anyone from Mikrotik sees this, is there any work scheduled to ensure consistency of API values? For example, I've come across some boolean values which only accept "yes"/"no", and others which only accept "true"/"false", sometimes on the same resource.

Who is online

Users browsing this forum: diamuxin, Experimentator, johnb175a, Sob, TeWe and 58 guests