ansible-consul/defaults/main.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2022-03-07 20:22:15 +00:00
---
# defaults file for ansible-consul
2022-06-06 14:04:47 +00:00
consul_bin_path: "/usr/local/bin"
2023-10-31 19:08:20 +00:00
consul_server: true
consul_ui: true
2022-06-06 14:04:47 +00:00
consul_config_path: "/etc/consul.d"
consul_bootstrap_state: "{{ consul_config_path }}/.consul_bootstrapped"
2022-03-08 20:07:38 +00:00
consul_iface: "{{ ansible_default_ipv4.interface }}"
2023-10-31 19:08:20 +00:00
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"
2023-10-31 19:08:20 +00:00
consul_bootstrap: false
2022-04-03 18:39:52 +00:00
consul_domain: "consul"
2022-03-08 20:07:38 +00:00
consul_data_dir: "/opt/consul"
consul_datacenter: "dc1"
2023-10-31 19:08:20 +00:00
consul_encrypt_enable: true
2022-03-08 20:07:38 +00:00
consul_ansible_group: "consul"
consul_servers_list: "\
{% set _consul_servers_list = [] %}\
{% for host in groups[consul_ansible_group] %}\
2023-10-31 19:08:20 +00:00
{% set _consul_server = hostvars[host]['consul_server'] | default(true, true) %}\
{% if (_consul_server == True) %}\
{% if _consul_servers_list.append(host) %} {% endif %}\
2022-03-08 20:07:38 +00:00
{% 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
2022-04-03 18:39:52 +00:00
consul_retry_join_force:
2023-10-31 19:08:20 +00:00
consul_dnsmasq_enable: false
consul_systemd_resolved_enable: false