2018-03-01 16:39:14 +08:00
|
|
|
ETCD_DATA_DIR={{ etcd_events_data_dir }}
|
|
|
|
ETCD_ADVERTISE_CLIENT_URLS={{ etcd_events_client_url }}
|
|
|
|
ETCD_INITIAL_ADVERTISE_PEER_URLS={{ etcd_events_peer_url }}
|
2020-07-20 22:26:51 +08:00
|
|
|
ETCD_INITIAL_CLUSTER_STATE={% if etcd_events_cluster_is_healthy.rc == 0 | bool %}existing{% else %}new{% endif %}
|
2018-03-01 16:39:14 +08:00
|
|
|
|
|
|
|
ETCD_METRICS={{ etcd_metrics }}
|
2021-12-07 16:28:01 +08:00
|
|
|
ETCD_LISTEN_CLIENT_URLS=https://{{ etcd_address }}:2383,https://127.0.0.1:2383
|
2018-03-01 16:39:14 +08:00
|
|
|
ETCD_ELECTION_TIMEOUT={{ etcd_election_timeout }}
|
|
|
|
ETCD_HEARTBEAT_INTERVAL={{ etcd_heartbeat_interval }}
|
|
|
|
ETCD_INITIAL_CLUSTER_TOKEN=k8s_events_etcd
|
|
|
|
ETCD_LISTEN_PEER_URLS=https://{{ etcd_address }}:2382
|
|
|
|
ETCD_NAME={{ etcd_member_name }}-events
|
|
|
|
ETCD_PROXY=off
|
|
|
|
ETCD_INITIAL_CLUSTER={{ etcd_events_peer_addresses }}
|
|
|
|
ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
|
2018-03-26 22:25:51 +08:00
|
|
|
{% if etcd_snapshot_count is defined %}
|
|
|
|
ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
|
|
|
|
{% endif %}
|
2018-08-04 19:56:25 +08:00
|
|
|
{% if etcd_quota_backend_bytes is defined %}
|
|
|
|
ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}
|
|
|
|
{% endif %}
|
2022-05-24 00:36:03 +08:00
|
|
|
{% if etcd_max_request_bytes is defined %}
|
|
|
|
ETCD_MAX_REQUEST_BYTES={{ etcd_max_request_bytes }}
|
|
|
|
{% endif %}
|
2018-03-01 16:39:14 +08:00
|
|
|
|
|
|
|
# TLS settings
|
|
|
|
ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
|
|
|
ETCD_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
|
|
|
|
ETCD_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
|
|
|
|
ETCD_CLIENT_CERT_AUTH={{ etcd_secure_client | lower}}
|
|
|
|
|
|
|
|
ETCD_PEER_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
|
|
|
|
ETCD_PEER_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
|
|
|
|
ETCD_PEER_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
|
|
|
|
ETCD_PEER_CLIENT_CERT_AUTH={{ etcd_peer_client_auth }}
|
2018-08-21 23:53:23 +08:00
|
|
|
|
2020-12-08 10:13:10 +08:00
|
|
|
{% if etcd_tls_cipher_suites is defined %}
|
2020-12-09 05:23:34 +08:00
|
|
|
ETCD_CIPHER_SUITES={% for tls in etcd_tls_cipher_suites %}{{ tls }}{{ "," if not loop.last else "" }}{% endfor %}
|
2020-12-08 10:13:10 +08:00
|
|
|
{% endif %}
|
|
|
|
|
2019-05-03 03:24:27 +08:00
|
|
|
{% for key, value in etcd_extra_vars.items() %}
|
|
|
|
{{ key }}={{ value }}
|
|
|
|
{% endfor %}
|
|
|
|
|
2018-08-23 23:06:00 +08:00
|
|
|
{% if host_architecture != "amd64" -%}
|
|
|
|
ETCD_UNSUPPORTED_ARCH={{host_architecture}}
|
2018-08-21 23:53:23 +08:00
|
|
|
{%- endif %}
|