You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.8 KiB

  1. ETCD_DATA_DIR={{ etcd_events_data_dir }}
  2. ETCD_ADVERTISE_CLIENT_URLS={{ etcd_events_client_url }}
  3. ETCD_INITIAL_ADVERTISE_PEER_URLS={{ etcd_events_peer_url }}
  4. ETCD_INITIAL_CLUSTER_STATE={% if etcd_events_cluster_is_healthy.rc == 0 | bool %}existing{% else %}new{% endif %}
  5. ETCD_METRICS={{ etcd_metrics }}
  6. ETCD_LISTEN_CLIENT_URLS=https://{{ etcd_address }}:2383,https://127.0.0.1:2383
  7. ETCD_ELECTION_TIMEOUT={{ etcd_election_timeout }}
  8. ETCD_HEARTBEAT_INTERVAL={{ etcd_heartbeat_interval }}
  9. ETCD_INITIAL_CLUSTER_TOKEN=k8s_events_etcd
  10. ETCD_LISTEN_PEER_URLS=https://{{ etcd_address }}:2382
  11. ETCD_NAME={{ etcd_member_name }}-events
  12. ETCD_PROXY=off
  13. ETCD_INITIAL_CLUSTER={{ etcd_events_peer_addresses }}
  14. ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
  15. {% if etcd_snapshot_count is defined %}
  16. ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
  17. {% endif %}
  18. {% if etcd_quota_backend_bytes is defined %}
  19. ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}
  20. {% endif %}
  21. {% if etcd_max_request_bytes is defined %}
  22. ETCD_MAX_REQUEST_BYTES={{ etcd_max_request_bytes }}
  23. {% endif %}
  24. # TLS settings
  25. ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
  26. ETCD_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
  27. ETCD_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
  28. ETCD_CLIENT_CERT_AUTH={{ etcd_secure_client | lower}}
  29. ETCD_PEER_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
  30. ETCD_PEER_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
  31. ETCD_PEER_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
  32. ETCD_PEER_CLIENT_CERT_AUTH={{ etcd_peer_client_auth }}
  33. {% if etcd_tls_cipher_suites is defined %}
  34. ETCD_CIPHER_SUITES={% for tls in etcd_tls_cipher_suites %}{{ tls }}{{ "," if not loop.last else "" }}{% endfor %}
  35. {% endif %}
  36. {% for key, value in etcd_extra_vars.items() %}
  37. {{ key }}={{ value }}
  38. {% endfor %}