rundeck/terraform-provider-rundeck

Rundeck Provider: rundeck_job options not recognising multi_value_delimiter

hashibot opened this issue · 1 comments

This issue was originally opened by @jamielennox1 as hashicorp/terraform#8658. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

v0.7.2

Affected Resource(s)

Please list the resources as a list, for example:

  • rundeck_job

Terraform Configuration Files

provider "rundeck" {
  url = "https://rundeck:4443/rundeckpro/"
  auth_token = "Auth_token"
  allow_unverified_ssl = "true"
}

data "aws_availability_zones" "available" {}

resource "rundeck_job" "example" {
  name = "example"
  project_name = "test"
  node_filter_query = "example"
  description = "Testing options"
  group_name = "Options"

  option {
    name = "availability_zones"
    required = "true"
    default_value = "${join(",", data.aws_availability_zones.available.names)}"
    multi_value_delimiter = ","
    value_choices = ["${data.aws_availability_zones.available.names}"]
    allow_multiple_values = "true"
  }

  command {
    shell_command = "echo example"
  }
}

Debug Output

rundeck_job.example: Invalid Option definition: availability_zones: You must specify a delimiter for multivalued options
Validation errors: Invalid Option definition: availability_zones: You must specify a delimiter for multivalued options

Expected Behavior

This should create a CSV list of availability zones

Actual Behavior

Doesn't recognise that the parameter has been presented

Steps to Reproduce

  1. terraform apply

Important Factoids

Rundeck Pro 1.3.9 (2.6.9-1)

Please try to recreate this issue on the current Terraform and provider version. If you still have trouble open a new issue with steps to reproduce please.