1. /my/file:
  2. file.copy:
  3. - source: /other/file
  4. - preserve: true
  5. /my/file:
  6. file.patch:
  7. - source: salt://files/file.patch
  8. - hash: md5=..
  9. - require:
  10. - pkg: patch

sdf