github.com/hashicorp/packer@v1.14.3/datasource/http/test-fixtures/empty_url.pkr.hcl (about)

     1  source "null" "example" {
     2    communicator = "none"
     3  }
     4  
     5  data "http" "basic" {
     6    url = ""
     7  }
     8  
     9  locals {
    10    url = "${data.http.basic.url}"
    11  }
    12  
    13  build {
    14    name = "mybuild"
    15    sources = [
    16      "source.null.example"
    17    ]
    18    provisioner "shell-local" {
    19      inline = [
    20        "echo data is ${local.url}",
    21      ]
    22    }
    23  }