github.com/hashicorp/packer@v1.14.3/command/test-fixtures/provisioners/provisioner-only-except.pkr.hcl (about) 1 source "null" "packer" { 2 communicator = "none" 3 } 4 5 source "null" "other" { 6 communicator = "none" 7 } 8 9 build { 10 sources = ["sources.null.packer", "null.other"] 11 12 provisioner "shell-local" { 13 inline = ["echo packer provisioner {{build_name}} and {{build_type}}"] 14 only = ["null.packer"] 15 } 16 17 provisioner "shell-local" { 18 inline = ["echo other provisioner {{build_name}} and {{build_type}}"] 19 except = ["null.packer"] 20 } 21 22 post-processor "shell-local" { 23 inline = ["echo packer post-processor {{build_name}} and {{build_type}}"] 24 only = ["null.packer"] 25 } 26 27 post-processor "shell-local" { 28 inline = ["echo other post-processor {{build_name}} and {{build_type}}"] 29 except = ["null.packer"] 30 } 31 }