From 296d170ba9644013dba241b2853bd1d653e72853 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 18 Dec 2014 17:52:30 -0500 Subject: [PATCH] Add sample for HCL --- samples/HCL/example.hcl | 6 ++++++ samples/HCL/example.tf | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 samples/HCL/example.hcl create mode 100644 samples/HCL/example.tf diff --git a/samples/HCL/example.hcl b/samples/HCL/example.hcl new file mode 100644 index 00000000..276b171e --- /dev/null +++ b/samples/HCL/example.hcl @@ -0,0 +1,6 @@ +consul = "1.2.3.4" + +// This is a comment +template "foo" { + bar = "zip" +} diff --git a/samples/HCL/example.tf b/samples/HCL/example.tf new file mode 100644 index 00000000..976c2e07 --- /dev/null +++ b/samples/HCL/example.tf @@ -0,0 +1,13 @@ +resource "aws_instance" "web" { + // Copies the myapp.conf file to /etc/myapp.conf + provisioner "file" { + source = "conf/myapp.conf" + destination = "/etc/myapp.conf" + } + + // Copies the configs.d folder to /etc/configs.d + provisioner "file" { + source = "conf/configs.d" + destination = "/etc" + } +}