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.
22 lines
334 B
YAML
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'
|