Naming the resources "type" was a stupid mistake, and is a huge source of confusion when also talking about real types. Fix this before it gets out of hand.
29 lines
535 B
YAML
29 lines
535 B
YAML
---
|
|
graph: mygraph
|
|
resources:
|
|
file:
|
|
- name: file1a
|
|
path: "/tmp/mgmt/mgmtA/f1a"
|
|
content: |
|
|
i am f1
|
|
state: exists
|
|
- name: file2a
|
|
path: "/tmp/mgmt/mgmtA/f2a"
|
|
content: |
|
|
i am f2
|
|
state: exists
|
|
- name: "@@file3a"
|
|
path: "/tmp/mgmt/mgmtA/f3a"
|
|
content: |
|
|
i am f3, exported from host A
|
|
state: exists
|
|
- name: "@@file4a"
|
|
path: "/tmp/mgmt/mgmtA/f4a"
|
|
content: |
|
|
i am f4, exported from host A
|
|
state: exists
|
|
collect:
|
|
- res: file
|
|
pattern: "/tmp/mgmt/mgmtA/"
|
|
edges: []
|