From 9c374a1928416fe4753ee93c5bdc825dd1a33e42 Mon Sep 17 00:00:00 2001 From: Josh Silvas Date: Thu, 31 Aug 2023 13:31:10 -0500 Subject: [PATCH] Updates examples and documentation. --- docs/data-sources/remote_subnet4_data_source.md | 1 + docs/resources/remote_subnet4_resource.md | 9 +++++---- .../resources/kea_remote_subnet4_resource/resource.tf | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/data-sources/remote_subnet4_data_source.md b/docs/data-sources/remote_subnet4_data_source.md index 7114509d..ce6d4c82 100644 --- a/docs/data-sources/remote_subnet4_data_source.md +++ b/docs/data-sources/remote_subnet4_data_source.md @@ -30,6 +30,7 @@ data "kea_remote_subnet4_data_source" "example" { - `prefix` (String) Prefix to fetch from Kea configuration-backend. e.g. 192.168.230.0/24` - `subnet_id` (Number) Subnet4 ID to fetch from Kea configuration-backend. e.g. 1921682300` +- `user_context` (Map of String) Arbitrary string data to tie to the subnet. e.g. `{site = "AUS", name = "Austin, Tx"}` ### Read-Only diff --git a/docs/resources/remote_subnet4_resource.md b/docs/resources/remote_subnet4_resource.md index 4a1d7d25..aab9bed3 100644 --- a/docs/resources/remote_subnet4_resource.md +++ b/docs/resources/remote_subnet4_resource.md @@ -27,6 +27,9 @@ resource "kea_remote_subnet4_resource" "example" { { code = 15, name = "domain-name", data = "example.com" }, { code = 6, name = "domain-name-servers", data = "4.2.2.2, 8.8.8.8", always_send = true }, ] + user_context = { + "foo" = "bar" + } } ``` @@ -43,6 +46,7 @@ resource "kea_remote_subnet4_resource" "example" { - `option_data` (Attributes List) List of option-data to configure on the pool. e.g. `[{code = 6, name = "domain-name-servers", data = "8.8.8.8, 4.2.2.2"}]` (see [below for nested schema](#nestedatt--option_data)) - `relay` (Attributes List) List of relay IPs to configure in Kea. e.g. `['192.168.230.1']` (see [below for nested schema](#nestedatt--relay)) +- `user_context` (Map of String) Arbitrary string data to tie to the subnet. e.g. `{site = "AUS", name = "Austin, Tx"}` ### Read-Only @@ -61,14 +65,11 @@ Required: Required: +- `always_send` (Boolean) - `code` (Number) - `data` (String) - `name` (String) -Optional: - -- `always_send` (Boolean) - ### Nested Schema for `relay` diff --git a/examples/resources/kea_remote_subnet4_resource/resource.tf b/examples/resources/kea_remote_subnet4_resource/resource.tf index 3eb7de88..26c89086 100644 --- a/examples/resources/kea_remote_subnet4_resource/resource.tf +++ b/examples/resources/kea_remote_subnet4_resource/resource.tf @@ -12,4 +12,7 @@ resource "kea_remote_subnet4_resource" "example" { { code = 15, name = "domain-name", data = "example.com" }, { code = 6, name = "domain-name-servers", data = "4.2.2.2, 8.8.8.8", always_send = true }, ] + user_context = { + "foo" = "bar" + } }