By nature, cmd.run is an imperative order more than a descriptive one.
This change ensures:
- file.managed is used to set file modes/ownership
- the descriptive creates is used instead of unless: test -f ...
Fixes T1349.
Differential D1359
Improve cmd.run usage dereckson on Feb 28 2018, 15:20. Authored by Tags None Referenced Files
Subscribers None
Details
By nature, cmd.run is an imperative order more than a descriptive one. This change ensures:
Fixes T1349. $ salt eglide state.apply roles/shellserver/odderon/config […] Comment: File /opt/odderon/var/darkbot/userlist.db exists with proper permissions. No changes made. […] $ salt eglide state.apply roles/webserver-core/letsencrypt/certificates test=True […] Comment: /etc/letsencrypt/live/www.eglide.org/fullchain.pem exists […]
Diff Detail
|