marshallford / terraform-provider-pfsense

Used to configure pfSense firewall/router devices with Terraform.
https://registry.terraform.io/providers/marshallford/pfsense
MIT License
17 stars 3 forks source link

Error in resource "pfsense_dnsresolver_hostoverride" "examples" #15

Closed Pedroars22 closed 2 months ago

Pedroars22 commented 8 months ago

I have the following error

image

Taegost commented 5 months ago

I'm receiving the same error in my code as well

marshallford commented 4 months ago

Sorry about limited communication. What version of the provider are you using? Could you confirm that the provider source is correctly set in your required_providers block (example below)?

terraform {
  required_providers {
    pfsense = {
      source = "marshallford/pfsense"
      version = "<some version>"
    }
  }
}
Taegost commented 4 months ago

Sorry about limited communication. What version of the provider are you using? Could you confirm that the provider source is correctly set in your required_providers block (example below)?

terraform {
  required_providers {
    pfsense = {
      source = "marshallford/pfsense"
      version = "<some version>"
    }
  }
}

I was using the latest version, 0.7.0. Honestly, I dropped TF entirely, Ansible with PfSensible has way more functionality for managing pfSense and is much simpler.

marshallford commented 4 months ago

@Taegost Huh strange, I'll have to look into this error further. As for the move to Ansible -- fair enough, the initial focus of the provider has been just to support home network DNS configuration akin to the existing Terraform support for AWS Route 53 or Infoblox. Lastly, a quick plug: If you do find yourself missing Terraform while using PfSensible, checkout the other provider I maintain for running Ansible playbooks via Terraform: https://github.com/marshallford/terraform-provider-ansible. Thanks for the feedback/reply!

aRustyDev commented 4 months ago

I'm also having this same issue, not sure where to try poking to investigate further. Any thoughts? Heres my current provider config, trying to implement the pfsense_dnsresolver_hostoverride

terraform {
  required_providers {
    ...
    pfsense = {
      source = "marshallford/pfsense"
      version = "~> 0.7.0"
    }
  }
}

provider "pfsense" {
  url      = "https://pfsense.domain.tld"
  username = "user.name"
  password = var.pfsense_password
  tls_skip_verify = true
}
pasquale1981 commented 4 months ago

it works up to 0.4.0 version. From 0.5.0 on it shows that error. (terraform v1.8.5)

marshallford commented 4 months ago

Hello all -- Thank you so much for your patience. I have published version 0.7.1 of the provider which upgrades the terraform plugin framework go library to resolve this well known issue. Please give it a go!