consul/defaults/main.yaml
2022-07-28 17:14:26 +03:00

31 lines
963 B
YAML

consul_version: 1.12.2
consul_config_path: "/etc/consul.d"
consul_data_path: "/opt/consul"
consul_user: consul
consul_group: consul
consul_install_repo: yes
consul_cluster_group: consul
consul_server_group: consul_server
consul_agent_group: consul_agent
consul_config: []
consul_default_config:
server: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
ui_config:
enabled: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
log_level: info
retry_join: "{{ groups[consul_server_group] | default([])}}"
retry_interval: 30s
datacenter: "main"
bootstrap_expect: "{{ groups[consul_server_group]|length|int if inventory_hostname in groups[consul_server_group] else omit }}"
performance:
raft_multiplier: 1
acl:
enabled: false
default_policy: deny
down_policy: extend-cache
enable_token_persistence: true
is_virtualenv: "{{ lookup('env','VIRTUAL_ENV') | default('') }}"