Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to run a command (or state) on the salt-master whenever salt 'myminion' state.highstate is run, but before the minion's highstate is executed?

The command is svn update or (svn.latest), so there will be files in /srv/salt available to the minion. svnfs won't work for me because of directory structure constraints. I also found that you can't add custom filesystems (without modifying salt's source).

I was hoping the Reactor system would help, but I am not sure if it can be used for this case.

Another possible solution is to write a SVN post-commit hook, but I'd rather not.

share|improve this question

You could create a custom runner that would execute your svn commands and then run your highstate as needed.

There are a lot of good example here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.