The file resource contained some of the early golang code that I wrote for this project. Needless to say, some of it was quite yucky, and it was also lacking a number of important features. This patch builds upon it so that it starts being usable for directories of files too. Many thanks to Sam Gélineau for helping with the recursive watching. My brain officially didn't want to look at that code anymore.
14 lines
213 B
YAML
14 lines
213 B
YAML
---
|
|
graph: mygraph
|
|
resources:
|
|
noop:
|
|
- name: noop1
|
|
file:
|
|
- name: file1
|
|
path: "/tmp/mgmt/hello/"
|
|
source: "/var/lib/mgmt/files/some_dir/"
|
|
recurse: true
|
|
force: true
|
|
state: exists
|
|
edges: []
|