terraform-provider-rundeck icon indicating copy to clipboard operation
terraform-provider-rundeck copied to clipboard

resource "rundeck_job" in the terraform gives the EOF error on 'terraform apply'

Open deamen opened this issue 1 year ago • 3 comments

Terraform Version

v1.9.5

Rundeck Version

v5.7.1

Provider version

0.4.9

Affected Resource(s)

Please list the resources as a list, for example:

  • rundeck_job

Terraform Configuration Files

resource "rundeck_job" "test" {
  name = "test"
  project_name = "test"
  description = ""
  command {
    shell_command = "echo 'test'"
  }
}

Expected Behavior

On 'terraform apply' it shouldn't give EOF error so that it can store the resources to the statefile to track the same.

Actual Behavior


rundeck_job.test: Creating...
╷
│ Error: EOF
│ 
│   with rundeck_job.test,
│   on configure-jobs.tf line 1, in resource "rundeck_job" "test":
│  1: resource "rundeck_job" "test" {
│ 
╵

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

  • GH-123

This issue has been reported in GH-123 but it was never fixed, people keep reporting in the old, closed issue.

deamen avatar Dec 03 '24 23:12 deamen

Same issue here using Rundeck Enterprise v5.6.1

claudekenni avatar Dec 30 '24 19:12 claudekenni

The terraform provider for rundeck is currently based on the XML API for Rundeck, which is disabled by default on 5.x (see here). Can you check if that's enabled, and if not try enabling it before running terraform apply?

andrea-berling avatar Feb 13 '25 10:02 andrea-berling

Hello, I'm observing the same behaviour on v5.9.0-20250205 (no enterprise)

I just wanted to add that for me, the job actually succeeds creating, but this is not recorded in the TF state and therefore the job creation is reproposed in a subsequent TF plan

EDIT:

But I can confirm that adding rundeck.feature.legacyXml.enabled=true fixes my problem as described in https://github.com/rundeck/terraform-provider-rundeck/issues/156#issuecomment-2656135407

thanks @andrea-berling

zsolt-p avatar Mar 06 '25 08:03 zsolt-p

So, if XML API is being deprecated, will this Provider also stop working? I was considering recommending Rundeck for a team to explore, but if Terraform/OpenTofu support is going away... Cheers.

boldandbusted avatar Jul 24 '25 17:07 boldandbusted

We are aware of the dependency on XML for this provider and will be updating soon to modernize the provider.

fdevans avatar Nov 04 '25 22:11 fdevans