github.com/hashicorp/packer@v1.14.3/command/test-fixtures/build-only/template.pkr.json (about)

     1  {
     2    "source": {
     3      "file": {
     4        "chocolate": {
     5          "content": "chocolate",
     6          "target": "chocolate.txt"
     7        }
     8      },
     9      "file": {
    10        "vanilla": {
    11          "content": "vanilla",
    12          "target": "vanilla.txt"
    13        }
    14      },
    15      "file": {
    16        "cherry": {
    17          "content": "cherry",
    18          "target": "cherry.txt"
    19        }
    20      }
    21    },
    22    "build": {
    23      "sources": [
    24        "sources.file.chocolate",
    25        "sources.file.vanilla",
    26        "sources.file.cherry"
    27      ],
    28      "provisioner": [
    29        {
    30          "shell-local": {
    31            "name": "apple",
    32            "inline": [
    33              "echo apple > apple.txt"
    34            ]
    35          }
    36        }
    37      ],
    38      "post-processor": [
    39        {
    40          "shell-local": {
    41            "name": "peach",
    42            "inline": [
    43              "echo peach > peach.txt"
    44            ]
    45          }
    46        },
    47        {
    48          "shell-local": {
    49            "name": "pear",
    50            "inline": [
    51              "echo pear > pear.txt"
    52            ]
    53          }
    54        },
    55        {
    56          "shell-local": {
    57            "name": "banana",
    58            "inline": [
    59              "echo banana > banana.txt"
    60            ]
    61          }
    62        },
    63        {
    64          "shell-local": {
    65            "name": "tomato",
    66            "inline": [
    67              "echo tomato > tomato.txt"
    68            ]
    69          }
    70        },
    71        {
    72          "shell-local": {
    73            "only": [
    74              "sources.file.chocolate"
    75            ],
    76            "inline": [
    77              "echo unnamed > unnamed.txt"
    78            ]
    79          }
    80        }
    81      ]
    82    }
    83  }