consul/defaults/main.yaml

60 lines
1.9 KiB
YAML
Raw Normal View History

consul_version: "1.12.9"
2022-07-28 14:14:26 +00:00
consul_config_path: "/etc/consul.d"
consul_data_path: "/opt/consul"
consul_user: "consul"
consul_group: "consul"
consul_install_repo: true
2022-07-28 14:14:26 +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:
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([])}}"
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
default_policy: "deny"
down_policy: "extend-cache"
2022-07-28 14:14:26 +00:00
enable_token_persistence: true
consul_ssl: false
2022-09-06 12:59:08 +00:00
consul_ssl_path: "/etc/consul.d/ssl"
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('') }}"