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 minions.

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.

Project details

Download files

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

Files for spiro-ip, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size spiro_ip-0.0.1-py3-none-any.whl (2.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size spiro-ip-0.0.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page