I have a file listing 1 or more server's hostnames
hostname_list that I generate using
awk. Now I need to execute
salt commands against the hostnames. I am trying, as a test, to run
test.ping to ping each server in the list.
I have tried doing it as a for loop but I can't get it to work.
I've tried numerous variations of:
for i in hostname_list do salt $i test.ping done