Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Implement comment field support in resources #649

Open
zeridon opened this issue Oct 18, 2024 · 0 comments
Open

FEAT: Implement comment field support in resources #649

zeridon opened this issue Oct 18, 2024 · 0 comments

Comments

@zeridon
Copy link

zeridon commented Oct 18, 2024

We are using the comment field for some housekeeping purposes (e.g. who requested what and others). Unfortunately the comment field is not supported at least for netbox_ip_address.

Please implement comment field support where possible/feasible.

Resources that come to mind are mostly in the IPAM and VM sections (e.g. address, ranges, vlans, vm's)

We could use description field as it is supported but it usually is reserved for something more shorter than comment.

Bellow you can find a sanitized extract from our code.

Terraform Version

tofu --version
OpenTofu v1.8.2
on linux_amd64

Affected Resource(s)

netbox_ip_address

Terraform Configuration Files

locals {
  vm_annotation  = <<EOT
multiline annotation
with some text
EOT
  vm_name        = "vm.example.com"
  vm_address     = "1.2.3.4"
}

resource "netbox_ip_address" "vm_address" {
  ip_address  = "${local.vm_address}/24"
  status      = "active"
  dns_name    = local.vm_name
  # comment = local.vm_annotation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant