github.com/hashicorp/packer@v1.14.3/hcl2template/testdata/sources/basic.pkr.hcl (about)

     1  // a source represents a reusable setting for a system boot/start.
     2  source "virtualbox-iso" "ubuntu-1204" {
     3      string   = "string"
     4      int      = 42
     5      int64    = 43
     6      bool     = true
     7      trilean  = true
     8      duration = "10s"
     9      map_string_string = {
    10          a = "b"
    11          c = "d"
    12      }
    13      slice_string = [
    14          "a",
    15          "b",
    16          "c",
    17      ]
    18      slice_slice_string = [
    19          ["a","b"],
    20          ["c","d"]
    21      ]
    22  
    23      nested {
    24          string   = "string"
    25          int      = 42
    26          int64    = 43
    27          bool     = true
    28          trilean  = true
    29          duration = "10s"
    30          map_string_string = {
    31              a = "b"
    32              c = "d"
    33          }
    34          slice_string = [
    35              "a",
    36              "b",
    37              "c",
    38          ]
    39          slice_slice_string = [
    40              ["a","b"],
    41              ["c","d"]
    42          ]
    43      }
    44  
    45      nested_slice {
    46          string   = "string"
    47          int      = 42
    48          int64    = 43
    49          bool     = true
    50          trilean  = true
    51          duration = "10s"
    52          map_string_string = {
    53              a = "b"
    54              c = "d"
    55          }
    56          slice_string = [
    57              "a",
    58              "b",
    59              "c",
    60          ]
    61          slice_slice_string = [
    62              ["a","b"],
    63              ["c","d"]
    64          ]
    65      }
    66  
    67      nested_slice {
    68          string   = "string"
    69          int      = 42
    70          int64    = 43
    71          bool     = true
    72          trilean  = true
    73          duration = "10s"
    74          map_string_string = {
    75              a = "b"
    76              c = "d"
    77          }
    78          slice_string = [
    79              "a",
    80              "b",
    81              "c",
    82          ]
    83          slice_slice_string = [
    84              ["a","b"],
    85              ["c","d"]
    86          ]
    87      }
    88  }
    89  
    90  source "null" "test" {
    91      communicator = "none"
    92  }
    93  
    94  build {
    95      sources = ["null.test"]
    96  }