From cfa83c4bfefe8386b6056639fd7f0fc5d57a94a9 Mon Sep 17 00:00:00 2001 From: David Boucha Date: Sun, 25 Mar 2012 18:35:41 -0600 Subject: [PATCH] Add WOL list. This wakes up a text file containing one MAC address per line. --- salt/runners/network.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/salt/runners/network.py b/salt/runners/network.py index 6c852a7781..a4ea91b3f6 100644 --- a/salt/runners/network.py +++ b/salt/runners/network.py @@ -4,6 +4,17 @@ Network tools to run from the Master import socket +def wollist(maclist, bcast='255.255.255.255', destport=9): + ''' + Send a "Magic Packet" to wake up a list of Minions. + This list must contain one MAC hardware address per line + + CLI Example:: + + salt-run '/path/to/maclist' + salt-run '/path/to/maclist' 255.255.255.255 7 + salt-run '/path/to/maclist' 255.255.255.255 7 + ''' def wol(mac, bcast='255.255.255.255', destport=9): ''' Send a "Magic Packet" to wake up a Minion