Ian Fijolek
d5078b24da
Occasionally I run into issues with Wesher. This makes it easier to disable use of Wesher by setting TF_VAR_use_wesher to false.
22 lines
355 B
HCL
22 lines
355 B
HCL
locals {
|
|
config_data = templatefile(
|
|
"${path.module}/config.yml",
|
|
{
|
|
base_hostname = var.base_hostname,
|
|
}
|
|
)
|
|
}
|
|
|
|
resource "nomad_job" "blocky" {
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
"config_data" = local.config_data,
|
|
}
|
|
}
|
|
|
|
jobspec = templatefile("${path.module}/blocky.nomad", {
|
|
use_wesher = var.use_wesher,
|
|
})
|
|
}
|