Files
ansible-homelab/roles/consul/defaults/main.yml
T
2026-02-04 10:00:07 -06:00

51 lines
969 B
YAML

---
# Consul version
consul_version: "1.17.1"
# Datacenter name
consul_datacenter: "hf-dc1"
# Domain for DNS
consul_domain: "consul"
# Bind address (0.0.0.0 for all interfaces)
consul_bind_addr: "{{ ansible_default_ipv4.address }}"
# Client address (for UI/API access)
consul_client_addr: "0.0.0.0"
# Data directory
consul_data_dir: "/opt/consul/data"
# Config directory
consul_config_dir: "/etc/consul.d"
# Log level
consul_log_level: "INFO"
# Enable UI
consul_ui_enabled: true
# Server mode (override in inventory)
consul_server: false
# Bootstrap expect (number of servers to wait for)
consul_bootstrap_expect: 1
# Retry join addresses (other Consul servers)
consul_retry_join: []
# Encryption key (generate with: consul keygen)
# Set this in group_vars/all.yml or vault
consul_encrypt_key: ""
# ACL configuration (disabled by default for initial setup)
consul_acl_enabled: false
# Ports
consul_ports:
http: 8500
https: -1
grpc: 8502
dns: 8600