Skip to content

Commit

Permalink
Docs and test for script_url
Browse files Browse the repository at this point in the history
  • Loading branch information
fdevans committed Sep 20, 2024
1 parent a4c43f7 commit da1e706
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions rundeck/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions rundeck/resource_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Binary file removed terraform-provider-rundeck
Binary file not shown.
2 changes: 2 additions & 0 deletions website/docs/r/job.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit da1e706

Please sign in to comment.