Could you help me (tell the example) with my task: At the minion during highstate I want to execute a state (get some IP) at Saltstack's master. Then return this result to the minion and create a grain with this value. I've tried a lot of options, but I can't do it. I'll be very grateful for any help.
One way to do this is:
If the IP you are talking about though doesn't change often, then it probably should be served as a pillar instead of a grain.