MCPcopy Index your code
hub / github.com/dalet-oss/terraform-provider-opnsense

github.com/dalet-oss/terraform-provider-opnsense @v0.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.1 ↗ · + Follow
51 symbols 127 edges 8 files 33 documented · 65%

Browse by type

Functions 45 Types & classes 6
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Terraform provider for OPNSense

This is a Terraform provider that lets you: - provision DHCP static mappings on OPNSense instance - provision UnboundDNS host overrides

What is NOT in scope:

  • To support every other feature than OPNSense supports

Getting Started

In your main.tf file, specify the version you want to use:

terraform {
  required_providers {
    libvirt = {
      source = "gxben/opnsense"
    }
  }
}

provider "opnsense" {
  # Configuration options
}

And now run terraform init:

$ terraform init

Provider configuration

provider "opnsense" {
  uri      = "https://acme.com"
  user     = "terraform"
  password = "complex_password"
}

Resource configuration

resource "opnsense_dhcp_static_map" "dhcp1" {
  interface = "opt3"
  mac       = "00:11:22:33:44:55"
  ipaddr    = "192.168.0.100"
  hostname  = "my_hostname"
}

resource "opnsense_dns_host_override" "dns1" {
  type   = "A"
  host   = "www"
  domain = "acme.local"
  ip     = "192.168.0.1"
}

Authors

License

  • Apache 2.0, See LICENSE file

Core symbols most depended-on inside this repo

Shape

Method 25
Function 20
Struct 6

Languages

Go100%

Modules by API surface

opnsense/dns.go14 symbols
opnsense/dhcp.go12 symbols
opnsense/resource_opn_dns_host_override.go7 symbols
opnsense/resource_opn_dhcp_static_map.go7 symbols
opnsense/opn.go4 symbols
opnsense/provider.go3 symbols
main.go3 symbols
opnsense/utils.go1 symbols

For agents

$ claude mcp add terraform-provider-opnsense \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page