github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/consultemplate/input/bad_template_paths.nomad (about)

     1  job "bad-template-paths" {
     2    datacenters = ["dc1", "dc2"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      value     = "linux"
     7    }
     8  
     9    group "template-paths" {
    10  
    11      restart {
    12        attempts = 0
    13        mode     = "fail"
    14      }
    15  
    16      task "task" {
    17  
    18        driver = "docker"
    19  
    20        config {
    21          image   = "busybox:1"
    22          command = "/bin/sh"
    23          args    = ["-c", "sleep 300"]
    24        }
    25  
    26        template {
    27          source      = "/etc/passwd"
    28          destination = "${NOMAD_SECRETS_DIR}/foo/dst"
    29        }
    30  
    31        resources {
    32          cpu    = 128
    33          memory = 64
    34        }
    35      }
    36    }
    37  }