Warning: The
consul_agent_self
resource has been deprecated and will be removed from a future release of the provider. Read the upgrade instructions for more information.
The consul_agent_self
data source returns configuration and status data from the agent specified in the provider
.
data "consul_agent_self" "read-dc1-agent" { query_options { # Optional parameter: implicitly uses the current datacenter of the agent datacenter = "dc1" } } # Set the description to a whitespace delimited list of the services resource "example_resource" "app" { description = "Consul datacenter ${data.consul_agent_self.read-dc1-agent.datacenter}" # ... }
The following attributes are exported:
acl_datacenter
acl_default_policy
acl_disabled_ttl
acl_down_policy
acl_enforce_0_8_semantics
acl_ttl
addresses
advertise_addr
advertise_addr_wan
advertise_addrs
atlas_join
bind_addr
bootstrap_expect
bootstrap_mode
check_deregister_interval_min
check_reap_interval
check_update_interval
client_addr
dns
- A map of DNS configuration attributes. See below for details on the contents of the dns
attribute. dns_recursors
- A list of all DNS recursors. data_dir
datacenter
dev_mode
domain
enable_anonymous_signature
enable_coordinates
enable_debug
enable_remote_exec
enable_syslog
enable_ui
enable_update_check
id
leave_on_int
leave_on_term
log_level
name
performance
pid_file
ports
protocol_version
reconnect_timeout_lan
reconnect_timeout_wan
rejoin_after_leave
retry_join
retry_join_ec2
- A map of EC2 retry attributes. See below for details on the available information. retry_join_gce
- A map of GCE retry attributes. See below for details on the available information. retry_join_wan
retry_max_attempts
retry_max_attempts_wan
serf_lan_bind_addr
serf_wan_bind_addr
server_mode
server_name
session_ttl_min
start_join
start_join_wan
syslog_facility
tls_ca_file
tls_cert_file
tls_key_file
tls_min_version
tls_verify_incoming
tls_verify_outgoing
tls_verify_server_hostname
tagged_addresses
telemetry
- A map of telemetry configuration. translate_wan_addrs
ui_dir
unix_sockets
version
- The version of the Consul agent. version_prerelease
version_revision
allow_stale
enable_compression
enable_truncate
max_stale
node_ttl
only_passing
recursor_timeout
service_ttl
udp_answer_limit
circonus_api_app
circonus_api_token
circonus_api_url
circonus_broker_id
circonus_check_id
circonus_check_tags
circonus_display_name
circonus_force_metric_activation
circonus_instance_id
circonus_search_tag
circonus_select_tag
circonus_submission_interval
circonus_submission_url
dogstatsd_addr
dogstatsd_tags
enable_hostname
statsd_addr
statsite_addr
statsite_prefix
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/consul/d/agent_self.html