Answer this question:
Is there any way to get this through the grain?
1) add the file '_grains / homeprefix.py' under file_roots specified in the main configuration file, the contents of which:
#!/usr/bin/env python from os.path import dirname, expanduser def gethomeprefix():
2) run sync cmd on master to synchronize grain information with minion:
salt '*' saltutil.sync_grains
3) run grains.get on master to check:
salt '*' grains.get homeprefix
source share