Closed maxadamo closed 10 months ago
Hi @maxadamo and thanks for raising this issue. The parameters
configuration is an argument rather than a block and therefore requires an equal sign for assignment as suggested in the Terraform output. If you define your parameters as shown below, I believe the error will be resolved:
parameters = {
kadalu_format = "native"
storage_name = "csi-pool"
gluster_hosts = "${local.nomad_env}-par-gluster01.example.org,${local.nomad_env}-par-gluster02.example.org,${local.nomad_env}-par-gluster03.example.org"
gluster_volname = "csi"
}
OMG.... ahahah 😸 I'm closing the issue. Thanks for your quick reply @jrasell !
re-opened, just to say, maybe you could add an example in the documentation, to make it clear. Because the parameters is not mentioned in the examples (closing again)
Terraform Version
Terraform v1.6.5
Nomad Version
Provider Configuration
Which values are you setting in the provider configuration?
Environment Variables
Do you have any Nomad specific environment variable set in the machine running Terraform?
Affected Resource(s)
Terraform Configuration Files
Debug Output
if necessary I can add the debug output.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
I should be able to use this parameter: https://registry.terraform.io/providers/hashicorp/nomad/latest/docs/resources/csi_volume#parameters
Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
orterraform apply
Important Factoids
n/a
References
n/a