Note: The
consul_agent_config
resource differs fromconsul_agent_self
, providing less information but utilizing stable APIs.consul_agent_self
will be deprecated in a future release.
The consul_agent_config
data source returns configuration data from the agent specified in the provider
.
data "consul_agent_config" "remote_agent" {} output "info" { consul_version = "${data.consul_agent_config.version}" }
The following attributes are exported:
datacenter
- The datacenter the agent is running in node_id
- The ID of the node the agent is running on node_name
- The name of the node the agent is running on server
- Boolean if the agent is a server or not revision
- The first 9 characters of the VCS revision of the build of Consul that is running version
- The version of the build of Consul that is running
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/consul/d/agent_config.html