Skip to content

Instantly share code, notes, and snippets.

@nehrman
Created May 20, 2019 09:57
Show Gist options
  • Save nehrman/bf1cee25df8e17d994957bd762986cc9 to your computer and use it in GitHub Desktop.
Save nehrman/bf1cee25df8e17d994957bd762986cc9 to your computer and use it in GitHub Desktop.
description
[[snippets]]
description = "Consul - List all known datacenters from the catalog"
command = "consul catalog datacenters"
tag = ["consul"]
output = "dc1\n"
[[snippets]]
description = "Consul - List all known members of a Consul Cluster"
command = "consul members"
tag = ["consul"]
output = "Node Address Status Type Build Protocol DC Segment\nraspnomad01 192.168.1.60:8301 alive server 1.4.2+ent 2 dc1 <all>\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment