variable "image_name" { type = string default = "docker.io/democraticcsi/democratic-csi:latest" } variable "csi_version" { type = string default = "1.5.0" } job "democratic-csi-nfs" { datacenters = ["dc1"] # you can run node plugins as service jobs as well, but this ensures # that all nodes in the DC have a copy. type = "system" group "monolith" { task "plugin" { driver = "docker" config { image = var.image_name args = [ "--csi-version=${var.csi_version}", # must match the csi_plugin.id attribute below "--csi-name=org.democratic-csi.nfs", "--driver-config-file=${NOMAD_TASK_DIR}/driver-config-file.yaml", "--log-level=info", "--csi-mode=node", "--csi-mode=controller", "--server-socket=/csi/csi.sock", ] } template { destination = "${NOMAD_TASK_DIR}/driver-config-file.yaml" data = <