How to work around Recursive directory management doesn't preserve permissions?
I want to copy all files in (local) /monitoring/files/etc
to /etc
on the minion.
copy_files_in_etc:
file.recurse:
- source:
- salt://monitoring/files/etc
- name: /etc
- template: jinja
Above snippets works, but I am missing the executable bit for some files.
For example scripts in /etc/cron.daily should be executable.
What is the most simple way to work around this?
I search a way to make all files matching this expression to be executable:
/etc/cron.(daily|hourly|monthly|weekly/)