joneshf / terraform-provider-openwrt

A Terraform provider for OpenWrt using LuCI's JSON-RPC API
https://registry.terraform.io/providers/joneshf/openwrt
Mozilla Public License 2.0
33 stars 8 forks source link

Add a `OpenWrtServer.ProviderBlock` method #120

Closed joneshf closed 1 year ago

joneshf commented 1 year ago

This doesn't really change much for the current usages, but trying to make sure we use the correct provider setup is a little hard when it's locked in the helpers file. We add a method on the OpenWrtServer that creates a provider block.

This should make it easier to use the server for other uses.