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

     1  
     2  variable "ssh_host" {
     3    type = string
     4  }
     5  
     6  variable "ssh_password" {
     7    type = string
     8  }
     9  
    10  variable "ssh_username" {
    11    type = string
    12  }
    13  
    14  variable "version_tag" {
    15    type = string
    16  }
    17  
    18  source "null" "autogenerated_1" {
    19    communicator = "ssh"
    20    ssh_host     = "${var.ssh_host}"
    21    ssh_password = "${var.ssh_password}"
    22    ssh_username = "${var.ssh_username}"
    23  }
    24  
    25  build {
    26    sources = ["source.null.autogenerated_1"]
    27  
    28    provisioner "shell-local" {
    29      inline       = ["echo ${var.version_tag} > provision.txt"]
    30      pause_before = "20s"
    31    }
    32  
    33  }