Clean up the examples/ directory
Naming things numerically isn't very obvious. This is better for now.
This commit is contained in:
18
examples/etcd1a.yaml
Normal file
18
examples/etcd1a.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
graph: mygraph
|
||||||
|
resources:
|
||||||
|
file:
|
||||||
|
- name: file1a
|
||||||
|
path: "/tmp/mgmtA/f1a"
|
||||||
|
content: |
|
||||||
|
i am f1
|
||||||
|
state: exists
|
||||||
|
- name: "@@file2a"
|
||||||
|
path: "/tmp/mgmtA/f2a"
|
||||||
|
content: |
|
||||||
|
i am f2, exported from host A
|
||||||
|
state: exists
|
||||||
|
collect:
|
||||||
|
- res: file
|
||||||
|
pattern: "/tmp/mgmtA/"
|
||||||
|
edges: []
|
||||||
18
examples/etcd1b.yaml
Normal file
18
examples/etcd1b.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
graph: mygraph
|
||||||
|
resources:
|
||||||
|
file:
|
||||||
|
- name: file1b
|
||||||
|
path: "/tmp/mgmtB/f1b"
|
||||||
|
content: |
|
||||||
|
i am f1
|
||||||
|
state: exists
|
||||||
|
- name: "@@file2b"
|
||||||
|
path: "/tmp/mgmtB/f2b"
|
||||||
|
content: |
|
||||||
|
i am f2, exported from host B
|
||||||
|
state: exists
|
||||||
|
collect:
|
||||||
|
- res: file
|
||||||
|
pattern: "/tmp/mgmtB/"
|
||||||
|
edges: []
|
||||||
18
examples/etcd1c.yaml
Normal file
18
examples/etcd1c.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
graph: mygraph
|
||||||
|
resources:
|
||||||
|
file:
|
||||||
|
- name: file1c
|
||||||
|
path: "/tmp/mgmtC/f1c"
|
||||||
|
content: |
|
||||||
|
i am f1
|
||||||
|
state: exists
|
||||||
|
- name: "@@file2c"
|
||||||
|
path: "/tmp/mgmtC/f2c"
|
||||||
|
content: |
|
||||||
|
i am f2, exported from host C
|
||||||
|
state: exists
|
||||||
|
collect:
|
||||||
|
- res: file
|
||||||
|
pattern: "/tmp/mgmtC/"
|
||||||
|
edges: []
|
||||||
83
examples/exec2.yaml
Normal file
83
examples/exec2.yaml
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
---
|
||||||
|
graph: mygraph
|
||||||
|
resources:
|
||||||
|
exec:
|
||||||
|
- name: exec1
|
||||||
|
cmd: sleep 10s
|
||||||
|
shell: ''
|
||||||
|
timeout: 0
|
||||||
|
watchcmd: ''
|
||||||
|
watchshell: ''
|
||||||
|
ifcmd: ''
|
||||||
|
ifshell: ''
|
||||||
|
pollint: 0
|
||||||
|
state: present
|
||||||
|
- name: exec2
|
||||||
|
cmd: sleep 10s
|
||||||
|
shell: ''
|
||||||
|
timeout: 0
|
||||||
|
watchcmd: ''
|
||||||
|
watchshell: ''
|
||||||
|
ifcmd: ''
|
||||||
|
ifshell: ''
|
||||||
|
pollint: 0
|
||||||
|
state: present
|
||||||
|
- name: exec3
|
||||||
|
cmd: sleep 10s
|
||||||
|
shell: ''
|
||||||
|
timeout: 0
|
||||||
|
watchcmd: ''
|
||||||
|
watchshell: ''
|
||||||
|
ifcmd: ''
|
||||||
|
ifshell: ''
|
||||||
|
pollint: 0
|
||||||
|
state: present
|
||||||
|
- name: exec4
|
||||||
|
cmd: sleep 10s
|
||||||
|
shell: ''
|
||||||
|
timeout: 0
|
||||||
|
watchcmd: ''
|
||||||
|
watchshell: ''
|
||||||
|
ifcmd: ''
|
||||||
|
ifshell: ''
|
||||||
|
pollint: 0
|
||||||
|
state: present
|
||||||
|
- name: exec5
|
||||||
|
cmd: sleep 15s
|
||||||
|
shell: ''
|
||||||
|
timeout: 0
|
||||||
|
watchcmd: ''
|
||||||
|
watchshell: ''
|
||||||
|
ifcmd: ''
|
||||||
|
ifshell: ''
|
||||||
|
pollint: 0
|
||||||
|
state: present
|
||||||
|
edges:
|
||||||
|
- name: e1
|
||||||
|
from:
|
||||||
|
res: exec
|
||||||
|
name: exec1
|
||||||
|
to:
|
||||||
|
res: exec
|
||||||
|
name: exec2
|
||||||
|
- name: e2
|
||||||
|
from:
|
||||||
|
res: exec
|
||||||
|
name: exec1
|
||||||
|
to:
|
||||||
|
res: exec
|
||||||
|
name: exec3
|
||||||
|
- name: e3
|
||||||
|
from:
|
||||||
|
res: exec
|
||||||
|
name: exec2
|
||||||
|
to:
|
||||||
|
res: exec
|
||||||
|
name: exec4
|
||||||
|
- name: e4
|
||||||
|
from:
|
||||||
|
res: exec
|
||||||
|
name: exec3
|
||||||
|
to:
|
||||||
|
res: exec
|
||||||
|
name: exec4
|
||||||
Reference in New Issue
Block a user