Files
mgmt/examples/graph3a.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: noop1a
file:
- name: file1a
path: "/tmp/mgmt1/f1a"
content: |
i am f1
state: exists
- name: file2a
path: "/tmp/mgmt1/f2a"
content: |
i am f2
state: exists
- name: "@@file3a"
path: "/tmp/mgmt1/f3a"
content: |
i am f3, exported from host A
state: exists
- name: "@@file4a"
path: "/tmp/mgmt1/f4a"
content: |
i am f4, exported from host A
state: exists
collect:
- type: file
pattern: "/tmp/mgmt1/"
edges:
- name: e1
from:
type: noop
name: noop1a
to:
type: file
name: file1a
- name: e2
from:
type: file
name: file1a
to:
type: file
name: file2a