github.com/hashicorp/packer@v1.14.3/command/test-fixtures/provisioners/provisioner-only-except.json (about)

     1  {
     2    "builders": [
     3      {
     4        "type": "null",
     5        "communicator": "none"
     6      },
     7      {
     8        "type": "null",
     9        "name": "packer",
    10        "communicator": "none"
    11      }
    12    ],
    13    "provisioners": [
    14      {
    15        "type": "shell-local",
    16        "inline": ["echo packer provisioner {{build_name}} and {{build_type}}"],
    17        "only": ["packer"]
    18      },
    19      {
    20        "type": "shell-local",
    21        "inline": ["echo null provisioner {{build_name}} and {{build_type}}"],
    22        "except": ["packer"]
    23      }
    24    ],
    25    "post-processors": [
    26      {
    27        "type": "shell-local",
    28        "inline": ["echo packer post-processor {{build_name}} and {{build_type}}"],
    29        "only": ["packer"]
    30      },
    31      {
    32        "type": "shell-local",
    33        "inline": ["echo null post-processor {{build_name}} and {{build_type}}"],
    34        "except": ["packer"]
    35      }
    36    ]
    37  }