github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/nomad/index.html.markdown (about)

     1  ---
     2  layout: "nomad"
     3  page_title: "Provider: Nomad"
     4  sidebar_current: "docs-nomad-index"
     5  description: |-
     6    Nomad is a cluster scheduler. The Nomad provider exposes resources to interact with a Nomad cluster.
     7  ---
     8  
     9  # Nomad Provider
    10  
    11  [Nomad](https://www.nomadproject.io) is a cluster scheduler. The Nomad
    12  provider exposes resources to interact with a Nomad cluster.
    13  
    14  Use the navigation to the left to read about the available resources.
    15  
    16  ## Example Usage
    17  
    18  ```hcl
    19  # Configure the Nomad provider
    20  provider "nomad" {
    21    address = "nomad.mycompany.com"
    22    region  = "us-east-2"
    23  }
    24  
    25  # Register a job
    26  resource "nomad_job" "monitoring" {
    27    jobspec = "${file("${path.module}/jobspec.hcl")}"
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `address` - (Optional) The HTTP(S) API address of the Nomad agent to use. Defaults to `http://127.0.0.1:4646`. The `NOMAD_ADDR` environment variable can also be used.
    36  * `region` - (Optional) The Nomad region to target. The `NOMAD_REGION` environment variable can also be used.