diff --git a/rundeck/job.go b/rundeck/job.go index a4f8a478e..8099fe1a8 100644 --- a/rundeck/job.go +++ b/rundeck/job.go @@ -263,6 +263,7 @@ type JobCommand struct { // a shell script it should have an appropriate #! line. Script string `xml:"script,omitempty"` + // Execute a Script from a URL ScriptUrl string `xml:"scripturl,omitempty"` // A pre-existing file (on the target nodes) that will be executed. diff --git a/rundeck/resource_job_test.go b/rundeck/resource_job_test.go index 20fec0458..6e91e96bb 100644 --- a/rundeck/resource_job_test.go +++ b/rundeck/resource_job_test.go @@ -303,6 +303,9 @@ resource "rundeck_job" "test" { description = "Prints Hello World" shell_command = "echo Hello World" } + command { + script_url = "notarealurl.end" + } notification { type = "on_success" email { diff --git a/terraform-provider-rundeck b/terraform-provider-rundeck deleted file mode 100755 index 938cdee07..000000000 Binary files a/terraform-provider-rundeck and /dev/null differ diff --git a/website/docs/r/job.html.md b/website/docs/r/job.html.md index 9219b8af6..97b4b1bea 100644 --- a/website/docs/r/job.html.md +++ b/website/docs/r/job.html.md @@ -202,6 +202,8 @@ The following arguments are supported: * `script_file` and `script_file_args` together describe a script that is already pre-installed on the nodes which is to be executed. +* `script_url` can be used to provide a URL to execute a script from a specified url. + * A `script_interpreter` block (Optional), described below, is an advanced feature specifying how to invoke the script file.