FEATURES PRICING ABOUT DOCS LOGIN

rundeck_job

The job resource allows Rundeck jobs to be managed by Terraform. In Rundeck a job is a particular named set of steps that can be executed against one or more of the nodes configured for its associated project.

Each job belongs to a project. A project can be created with the rundeck_project resource.

Example Usage

resource "rundeck_job" "bounceweb" {
    name = "Bounce Web Servers"
    project_name = "anvils"
    node_filter_query = "tags: web"
    description = "Restart the service daemons on all the web servers"

    command {
        shell_command = "sudo service anvils restart"
    }
}

Argument Reference

The following arguments are supported:

option blocks have the following structure:

command blocks must have any one of the following combinations of arguments as contents:

A command’s job block has the following structure:

A command’s step_plugin or node_step_plugin block both have the following structure:

Attributes Reference

The following attribute is exported:


See the source of this document at Terraform.io

REQUEST A DEMO