hcl: Added basic hcl frontend
This commit is contained in:
committed by
ChrisMcKenzie
parent
a8bbb22fe8
commit
bc1a1d1818
20
examples/graph0.hcl
Normal file
20
examples/graph0.hcl
Normal 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
4
examples/graph1.hcl
Normal file
@@ -0,0 +1,4 @@
|
||||
resource "exec" "exec1" {
|
||||
cmd = "cat /tmp/mgmt-hello-world"
|
||||
state = "present"
|
||||
}
|
||||
Reference in New Issue
Block a user