ansible-consul/defaults/main.yml

31 lines
909 B
YAML
Raw Normal View History

2022-03-07 20:22:15 +00:00
---
# defaults file for ansible-consul
2022-03-08 20:07:38 +00:00
consul_server: True
consul_ui: True
consul_iface: "{{ ansible_default_ipv4.interface }}"
consul_bind_address: "{{ hostvars[inventory_hostname]['ansible_'+ consul_iface | replace('-', '_')]['ipv4']['address']}}"
2022-03-11 09:57:10 +00:00
consul_client_addr: "127.0.0.1"
2022-03-08 20:07:38 +00:00
consul_bootstrap: False
consul_data_dir: "/opt/consul"
consul_datacenter: "dc1"
consul_gossip_encryption_key:
consul_ansible_group: "consul"
consul_servers_list: "\
{% set _consul_servers_list = [] %}\
{% for host in groups[consul_ansible_group] %}\
{% set _consul_server = hostvars[host]['consul_server']|default(true,true) %}\
{% if ( _consul_server == True) %}\
{% if _consul_servers_list.append(host) %}{% endif %}\
{% endif %}\
{% endfor %}\
{{ _consul_servers_list }}"
consul_join: []
consul_join_wan: []
2022-03-11 09:57:10 +00:00
consul_bootstrap_expect: 3
2022-03-12 14:44:06 +00:00
consul_snapshot: false
consul_backup_location: ""
consul_cron_hour: 1