saltstack/salt — pull request #4117 by kfdm (2013-03-15 18:08:41+00:00)
Title: Provide the master's version in pillar.data

This allows you to make decisions based on the minion version and
master version, for example, running pkg.install only if the
salt-minion is out of date

Grains would have the minion's version
Pillar would have the master's version
{% if grains['saltversion'] != pillar['master']['saltversion'] %}