github.com/hernad/nomad@v1.6.112/e2e/consultemplate/input/bad_template_paths.nomad (about)

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