2023-03-28 19:14:08 +00:00
|
|
|
consul_version: "1.14.5"
|
2022-07-28 14:14:26 +00:00
|
|
|
consul_config_path: "/etc/consul.d"
|
|
|
|
consul_data_path: "/opt/consul"
|
2023-02-07 20:14:22 +00:00
|
|
|
consul_user: "consul"
|
|
|
|
consul_group: "consul"
|
2023-03-29 20:45:46 +00:00
|
|
|
consul_install_official_repo: true
|
2022-07-28 14:14:26 +00:00
|
|
|
|
2023-02-07 20:14:22 +00:00
|
|
|
consul_cluster_group: "consul"
|
|
|
|
consul_server_group: "consul_server"
|
|
|
|
consul_agent_group: "consul_agent"
|
2022-07-28 14:14:26 +00:00
|
|
|
|
2022-09-06 12:59:08 +00:00
|
|
|
consul_config: {}
|
2022-07-28 14:14:26 +00:00
|
|
|
consul_default_config:
|
2023-01-12 15:52:45 +00:00
|
|
|
bind_addr: "{{ ansible_default_ipv4.address }}"
|
2022-07-28 14:14:26 +00:00
|
|
|
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([])}}"
|
2023-02-07 20:14:22 +00:00
|
|
|
retry_interval: "30s"
|
2022-07-28 14:14:26 +00:00
|
|
|
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
|
2023-02-07 20:14:22 +00:00
|
|
|
default_policy: "deny"
|
|
|
|
down_policy: "extend-cache"
|
2022-07-28 14:14:26 +00:00
|
|
|
enable_token_persistence: true
|
|
|
|
|
2023-02-07 20:14:22 +00:00
|
|
|
consul_ssl: false
|
2022-09-06 12:59:08 +00:00
|
|
|
consul_ssl_path: "/etc/consul.d/ssl"
|
2023-02-07 20:14:22 +00:00
|
|
|
consul_self_signed_cert: false
|
2022-09-06 12:59:08 +00:00
|
|
|
consul_self_signed_cert_name: "consul-tls"
|
|
|
|
consul_server_ssl_config: {}
|
|
|
|
consul_server_ssl_default_config:
|
|
|
|
ports:
|
|
|
|
https: 8501
|
|
|
|
verify_incoming: true
|
|
|
|
verify_outgoing: true
|
|
|
|
verify_server_hostname: false
|
|
|
|
ca_file: "{{ consul_ssl_path }}/CA-{{ consul_self_signed_cert_name }}.crt"
|
|
|
|
cert_file: "{{ consul_ssl_path }}/{{ consul_self_signed_cert_name }}.crt"
|
|
|
|
key_file: "{{ consul_ssl_path }}/{{ consul_self_signed_cert_name }}.key"
|
|
|
|
auto_encrypt:
|
|
|
|
allow_tls: true
|
|
|
|
|
|
|
|
consul_agent_ssl_config: {}
|
|
|
|
consul_agent_ssl_default_config:
|
|
|
|
ports:
|
|
|
|
https: 8501
|
|
|
|
verify_incoming: true
|
|
|
|
verify_outgoing: true
|
|
|
|
verify_server_hostname: false
|
|
|
|
ca_file: "{{ consul_ssl_path }}/CA-{{ consul_self_signed_cert_name }}.crt"
|
|
|
|
cert_file: "{{ consul_ssl_path }}/{{ consul_self_signed_cert_name }}.crt"
|
|
|
|
key_file: "{{ consul_ssl_path }}/{{ consul_self_signed_cert_name }}.key"
|
|
|
|
|
2022-07-28 14:14:26 +00:00
|
|
|
is_virtualenv: "{{ lookup('env','VIRTUAL_ENV') | default('') }}"
|