Files
mgmt/test/shell/file-mode.yaml
Mildred Ki'Lya 8c2c552164 resources: file: Implement file attributes
Add owner which must be username or uid of the file owner, group which is
the group name or gid of the file, and mode which is the octal unix file
permissions.

Add separate implementation for Go 1.6 and lower.
2017-02-14 11:55:00 -05:00

22 lines
334 B
YAML

---
graph: mygraph
resources:
file:
- name: file1
path: "/tmp/mgmt/f1"
content: |
i am f1
state: exists
- name: file2
path: "/tmp/mgmt/f2"
content: |
i am f2
state: exists
mode: 0741
- name: file3
path: "/tmp/mgmt/f3"
content: |
i am f3
state: exists
mode: '0614'