Creates and manages a variable, including it's contents, within a Nomad cluster.
Creating a variable in the default namespace:
resource "nomad_variable" "example" {
path = "some/path/of/your/choosing"
items = {
example_key = "example_value"
}
}
Creating a variable in a custom namespace:
resource "nomad_namespace" "example" {
name = "example"
description = "Example namespace."
}
resource "nomad_variable" "example" {
path = "some/path/of/your/choosing"
namespace = nomad_namespace.example.name
items = {
example_key = "example_value"
}
}
path
(string: <required>)
- A unique path to create the variable at.namespace
(string: "default")
- The namepsace to create the variable in.items
(map[string]string: <required>)
- An arbitrary map of items to create in the variable.