Skip to main content

Salt modules for discovering and exposing minion's IP addresses

Project description


A quick and simple module to get information about the various IPs of your salt

This is meant to be installed on minions.


On minions, run `pip install spiro-ip`

Or, as a state:

{% if grains['pythonversion'][0] == 2 %}
{% set pipbin = "/usr/bin/pip2" %}
{% else %}
{% set pipbin = "/usr/bin/pip3" %}
{% endif %}

- bin_env: {{pipbin}}


A number of things are provided:


* `externalip4`, `externalip6`: Queries external services for your IP, useful
if the minion is behind a NAT or other complex network


* `ip.addrs4`, `ip.addrs6`: Collates information about a minion's IP address
from several sources.

* `network.ipaddrs` / `network.ipaddrs6`
* AWS metadata (if you've set `metadata_server_grains: True`, see the [metadata grain](
* `externalip4` / `externalip6` grains (above)


No configuration is required. However, as mentioned above, it might be useful to
set `metadata_server_grains: True`.

You may find it useful to set `ip.addrs4` / `ip.addrs6` as mine_functions so
that minions can get each other's IP address. Example:

ip.addrs4: []
ip.addrs6: []

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
spiro_ip-0.0.3-py2-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel py2
spiro_ip-0.0.3-py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel py3
spiro-ip-0.0.3.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page