Provider Setup

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

This page shows the minimum provider setup required to start managing Nomatron with Terraform.

Terraform Version Requirements

Use a Terraform version that matches the provider features you need.

Current provider guidance is:

  • Terraform >= 1.14 to use provider actions;
  • Terraform >= 1.11 to use write-only resource attributes such as value_wo.

If you only need basic resources and data sources, you may not need the newer action-specific behavior, but using a recent Terraform release is still the simplest path.

Declare The Provider

Start by declaring the provider in your Terraform configuration:

hcl
terraform {
  required_providers {
    nomatron = {
      source  = "nomatronio/nomatron"
      version = "~> 0.6"
    }
  }
}

version = "~> 0.6" accepts any 0.6.x release (0.6.9 at the time of writing) and avoids picking up a future 0.7 release automatically.

Configure The Provider

The provider needs:

  • the Nomatron API address; and
  • a valid Nomatron token.

Basic example:

hcl
provider "nomatron" {
  address = "https://nomatron.example.com"
  token   = var.nomatron_token
}

For local development:

hcl
provider "nomatron" {
  address = "http://127.0.0.1:4649"
  token   = var.nomatron_token
}

TLS Options

If your Nomatron deployment uses custom TLS material, the provider supports optional TLS arguments:

  • tls_cert
  • tls_key
  • tls_ca_cert

These are file paths used by the provider when establishing the connection.

Example:

hcl
provider "nomatron" {
  address     = "https://nomatron.example.com"
  token       = var.nomatron_token
  tls_ca_cert = "/etc/nomatron/ca.pem"
  tls_cert    = "/etc/nomatron/client.pem"
  tls_key     = "/etc/nomatron/client-key.pem"
}

Sanity Check

Once the provider is configured, the easiest next step is to create or read a very small resource such as an organization, user, or Nomad cluster. That confirms:

  • the provider can reach Nomatron;
  • the token is valid; and
  • the authenticated identity has the required permissions.

Registry And Provider Reference

The official provider is published at:

Terraform Registry: nomatronio/nomatron

The local provider repository in the Nomatron development workflow also includes example configurations and generated resource docs.