Say I have a Powershell script, named
test.ps1, that has this:
$VariableForPillar = 5
I can call it from a Salt state with -
test powershell run: cmd.run: - name: 'C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe -ExecutionPolicy ByPass -File d:/tmp/Powershell/test.ps1'
But what can I do to retrieve that value and insert it into a Pillar (or a Mine)?