32 lines
932 B
HCL
32 lines
932 B
HCL
resource "nomad_job" "service" {
|
|
jobspec = templatefile("${path.module}/service_template.nomad", {
|
|
name = var.name
|
|
image = var.image
|
|
image_pull_timeout = var.image_pull_timeout
|
|
args = var.args
|
|
env = var.env
|
|
meta = var.meta
|
|
group_meta = var.group_meta
|
|
constraints = var.constraints
|
|
docker_devices = var.docker_devices
|
|
|
|
service_port = var.service_port
|
|
sticky_disk = var.sticky_disk
|
|
resources = var.resources
|
|
|
|
ingress = var.ingress
|
|
ingress_rule = var.ingress_rule
|
|
ingress_middlewares = var.ingress_middlewares
|
|
prometheus = var.prometheus
|
|
|
|
templates = var.templates
|
|
host_volumes = var.host_volumes
|
|
|
|
use_mysql = var.use_mysql
|
|
use_redis = var.use_redis
|
|
use_ldap = var.use_ldap
|
|
|
|
mysql_bootstrap = var.mysql_bootstrap
|
|
})
|
|
}
|