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

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