github.com/hashicorp/packer@v1.14.3/packer_test/dag_tests/templates/mixed_data_local.pkr.hcl (about)

     1  data "null" "head" {
     2  	input = "foo"
     3  }
     4  
     5  locals {
     6  	loc = "${data.null.head.output}"
     7  }
     8  
     9  data "null" "tail" {
    10  	input = "${local.loc}"
    11  }
    12  
    13  locals {
    14  	last = "final - ${data.null.tail.output}"
    15  }
    16  
    17  source "null" "test" {
    18  	communicator = "none"
    19  }
    20  
    21  build {
    22  	sources = ["null.test"]
    23  }