ansible-consul/defaults/main.yml
vincent 1efd0d406e
All checks were successful
continuous-integration/drone Build is passing
linting
2023-10-31 20:08:20 +01:00

36 lines
1.1 KiB
YAML

---
# defaults file for ansible-consul
consul_bin_path: "/usr/local/bin"
consul_server: true
consul_ui: true
consul_config_path: "/etc/consul.d"
consul_bootstrap_state: "{{ consul_config_path }}/.consul_bootstrapped"
consul_iface: "{{ ansible_default_ipv4.interface }}"
consul_bind_address: "{{ hostvars[inventory_hostname]['ansible_' + consul_iface | replace('-', '_')]['ipv4']['address'] }}"
consul_client_addr: "127.0.0.1"
consul_bootstrap: false
consul_domain: "consul"
consul_data_dir: "/opt/consul"
consul_datacenter: "dc1"
consul_encrypt_enable: true
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: []
consul_bootstrap_expect: 3
consul_snapshot: false
consul_backup_location: ""
consul_cron_hour: 1
consul_retry_join_force:
consul_dnsmasq_enable: false
consul_systemd_resolved_enable: false