opnsense_kea_peer (Resource)

Configure HA Peers for Kea.

Example Usage

// Small example
resource "opnsense_kea_peer" "example" {
  name = "example"
  role = "primary"
  url = "http://192.0.2.1:8001/"
}

Schema

Required

  • name (String) Peer name, there should be one entry matching this machine's "This server name".
  • url (String) URL of the server instance, which should use a different port than the control agent (e.g. http://192.0.2.1:8001/).

Optional

  • role (String) Peer's role. Defaults to "primary".

Read-Only

  • id (String) UUID of the peer.

Import

In Terraform v1.5.0 and later, use an import block to import opnsense_kea_peer using the id. For example:

import {
  to = opnsense_kea_peer.example
  id = "<opnsense-resource-id>"
}

Using terraform import, import opnsense_kea_peer using the id. For example:

% terraform import opnsense_kea_peer.example <opnsense-resource-id>