Get information from Consul (Coordinate).
Version added: 0.4.0
- Get information from Consul (Coordinate).
- https://www.consul.io/api-docs/coordinate
The below requirements are needed on the host that executes this module.
- requests
- name: get wan datacenter coordinates
community.missing_collection.consul_coordinate_info:
get_wan_datacenter: true
token: "7661077f-3b6b-f763-6330-eedd2c3a442b"
- name: get lan datacenter coordinates
community.missing_collection.consul_coordinate_info:
get_lan_datacenter: true
dc: "dc1"
token: "7661077f-3b6b-f763-6330-eedd2c3a442b"
- name: get lan node coordinates
community.missing_collection.consul_coordinate_info:
get_lan_node: true
dc: "dc1"
node: "consul-server1"
token: "7661077f-3b6b-f763-6330-eedd2c3a442b"
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
result
list
|
when success. |
result from the consul api.
|
- Davinder Pal (@116davinder) <dpsangwal@gmail.com>