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

Invocation String options

Open kizzie opened this issue 7 years ago • 8 comments

Hello! I don't suppose there are any plans to add an option for the invocation string to be set via terraform is there? Or am I just missing it? (http://rundeck.org/docs/manual/jobs.html#advanced-script-options).

Terraform Version

0.10.0 (although terraform version isn't really a problem here as long as its on 0.10.x)

Affected Resource(s)

rundeck_job -> command -> inline_script

kizzie avatar Oct 19 '17 11:10 kizzie

Any updates on this?

richardgavel avatar Jan 12 '21 21:01 richardgavel

Wow. I had entirely forgotten about this. We just started updating and keeping our own version of the provider... not sure it will ever be merged!

kizzie avatar Jan 13 '21 00:01 kizzie

Don't suppose that fork is sitting in Github that I can see? I might just fork and submit a PR for this change to the main repo.

richardgavel avatar Jan 13 '21 20:01 richardgavel

Sadly not - I'll ask if I am allowed to put it all in there though. For this specific thing https://github.com/rundeck/terraform-provider-rundeck/pull/10 fixes it though :)

kizzie avatar Jan 14 '21 13:01 kizzie

Thanks, I was struggling a bit where some of the changes would go, this helps

richardgavel avatar Jan 14 '21 15:01 richardgavel

Reimplemented against current master as https://github.com/rundeck/terraform-provider-rundeck/pull/64

richardgavel avatar Jan 14 '21 17:01 richardgavel

Any plans to also add the file extension option? I'm having some issues with Windows nodes in which, by default, the temp script gets copied as a .bat file, which means that any Powershell specific cmdlet is not being recognized (I've tried setting the invocation_string to powershell.exe ${scriptfile}.ps1, but this only results on the temp file still being copied as script.tmp.bat, but then rundeck tries to execute it as script.tmp.bat.ps1 thus failing).

This is explained in the rundeck doc page about builtin node steps

Onelvis avatar Aug 31 '22 13:08 Onelvis

See comments on #10 to finalize this.

fdevans avatar Oct 23 '23 18:10 fdevans

Invocation string should be supported.

fdevans avatar Sep 21 '24 01:09 fdevans