rougail-output-hcl/tests/structures/92-examples.yaml

37 lines
581 B
YAML

%YAML 1.2
---
version: 1.1
build:
hcl_type: block
name: learn-packer
sources:
- source.docker.ubuntu
- source.docker.ubuntu-focal
provisioner_1:
hcl_type: block
hcl_name: provisioner
shell:
hcl_type: label
environment_vars:
- FOO=hello world
inline:
- echo Adding file to Docker Container
- "echo \"FOO is $FOO\" > example.txt"
provisioner_2:
hcl_type: block
hcl_name: provisioner
shell:
hcl_type: label
inline:
- echo Running ${var.docker_image} Docker image.
...