I liked this feature enough to implement it two ways for you[1].
/tmp/newfile.state:
file:
- touch
- mtime: 1326488608.326422
- atime: 1326488608.326422
/tmp/empty:
file:
- managed
- user: jeff
- group: jeff
You can set explicit atime & ctime with "touch" or you can create an
empty file with the permissions and ownership you want using the
regular managed file state. Now you can also do:
salt '*' file.touch /tmp/newfile.txt
Thanks for the idea! Now hopefully tom will accept this pull request.
[1] https://github.com/saltstack/salt/pull/504
--
Jeff Schroeder
Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com