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

sdf