mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
1.5 KiB
1.5 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| nomad | Provider: Nomad | docs-nomad-index | Nomad is a cluster scheduler. The Nomad provider exposes resources to interact with a Nomad cluster. |
Nomad Provider
Nomad is a cluster scheduler. The Nomad provider exposes resources to interact with a Nomad cluster.
Use the navigation to the left to read about the available resources.
Example Usage
# Configure the Nomad provider
provider "nomad" {
address = "nomad.mycompany.com"
region = "us-east-2"
}
# Register a job
resource "nomad_job" "monitoring" {
jobspec = "${file("${path.module}/jobspec.hcl")}"
}
Argument Reference
The following arguments are supported:
address- (Optional) The HTTP(S) API address of the Nomad agent to use. Defaults tohttp://127.0.0.1:4646. TheNOMAD_ADDRenvironment variable can also be used.region- (Optional) The Nomad region to target. TheNOMAD_REGIONenvironment variable can also be used.ca_file- (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. TheNOMAD_CACERTenvironment variable can also be used.cert_file- (Optional) A path to a PEM-encoded certificate provided to the remote agent; requires use ofkey_file. TheNOMAD_CLIENT_CERTenvironment variable can also be used.key_file- (Optional) A path to a PEM-encoded private key, required ifcert_fileis specified. TheNOMAD_CLIENT_KEYenvironment variable can also be used.