mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
20 lines
419 B
ReStructuredText
20 lines
419 B
ReStructuredText
.. _targeting-ipcidr:
|
|
|
|
==========================
|
|
Subnet/IP Address Matching
|
|
==========================
|
|
|
|
Minions can easily be matched based on IP address, or by subnet (using CIDR_
|
|
notation).
|
|
|
|
.. code-block:: bash
|
|
|
|
salt -S 192.168.40.20 test.ping
|
|
salt -S 10.0.0.0/24 test.ping
|
|
|
|
.. _CIDR: http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
|
|
|
|
.. note::
|
|
|
|
Only IPv4 matching is supported at this time.
|