Get package version in Salt

Having installed the latest version of package where it expects config files to do be in a path including the version number (e.g. postgresql-server), how can I get the installed version number in a variable to be used inside my state.sls file so the salt master can: manage the config files in the correct path use this for […]