github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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.
    37  * `ca_file` - (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. The `NOMAD_CACERT` environment variable can also be used.
    38  * `cert_file` - (Optional) A path to a PEM-encoded certificate provided to the remote agent; requires use of `key_file`. The `NOMAD_CLIENT_CERT` environment variable can also be used.
    39  * `key_file`- (Optional) A path to a PEM-encoded private key, required if `cert_file` is specified. The `NOMAD_CLIENT_KEY` environment variable can also be used.