Files
mgmt/examples/graph3c.yaml
James Shubin d8cbeb56f9 Support N distributed agents
This is the third main feature of this system. The code needs a bunch of
polish, but it actually all works :)

I've tested this briefly with N <= 3.

Currently you have to build your own etcd cluster. It's quite easy, just
run `etcd` and it will be ready. I usually run it in a throw away /tmp/
dir so that I can blow away the stored data easily.
2016-01-04 21:00:13 -05:00

45 lines
707 B
YAML

---
graph: mygraph
types:
noop:
- name: noop1c
file:
- name: file1c
path: "/tmp/mgmt3/f1c"
content: |
i am f1
state: exists
- name: file2c
path: "/tmp/mgmt3/f2c"
content: |
i am f2
state: exists
- name: "@@file3c"
path: "/tmp/mgmt3/f3c"
content: |
i am f3, exported from host C
state: exists
- name: "@@file4c"
path: "/tmp/mgmt3/f4c"
content: |
i am f4, exported from host C
state: exists
collect:
- type: file
pattern: "/tmp/mgmt3/"
edges:
- name: e1
from:
type: noop
name: noop1c
to:
type: file
name: file1c
- name: e2
from:
type: file
name: file1c
to:
type: file
name: file2c