Skip to content

Instantly share code, notes, and snippets.

@therve
therve / get-role-ports.sh
Last active July 12, 2019 15:07 — forked from jistr/get-role-ports.sh
Fetch port information from a TripleO overcloud Heat stack
#!/bin/bash
# This script will fetch IP addresses assigned to ports on servers belonging
# to a particular role in the overcloud Heat stack. It's not optimized for everyday
# use and takes a while to complete, as it makes many Heat queries. This does not include
# e.g. VIPs.
# Run this script for each role you are interested in. Example usage:
# $ source stackrc
# $ bash get-role-ports.sh overcloud Controller