hcl: Added basic hcl frontend

This commit is contained in:
ChrisMcKenzie
2017-06-09 08:47:51 -07:00
committed by ChrisMcKenzie
parent a8bbb22fe8
commit bc1a1d1818
5 changed files with 530 additions and 0 deletions

20
examples/graph0.hcl Normal file
View File

@@ -0,0 +1,20 @@
resource "file" "file1" {
path = "/tmp/mgmt-hello-world"
content = "hello, world"
state = "exists"
}
resource "noop" "noop1" {
test = "nil"
}
edge "e1" {
from = {
kind = "noop"
name = "noop1"
}
to = {
kind = "file"
name = "file1"
}
}

4
examples/graph1.hcl Normal file
View File

@@ -0,0 +1,4 @@
resource "exec" "exec1" {
cmd = "cat /tmp/mgmt-hello-world"
state = "present"
}