github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl2_upgrade/undeclared-variables/expected.pkr.hcl (about)

     1  
     2  variable "communicator_type" {
     3    type = string
     4  }
     5  
     6  variable "foo" {
     7    type    = string
     8    default = "bar"
     9  }
    10  
    11  variable "scriptpath" {
    12    type = string
    13  }
    14  
    15  source "null" "autogenerated_1" {
    16    communicator = "${var.communicator_type}"
    17  }
    18  
    19  build {
    20    sources = ["source.null.autogenerated_1"]
    21  
    22    provisioner "shell" {
    23      script = "${var.scriptpath}"
    24    }
    25  
    26  }