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.

41 lines
1.6 KiB

  1. # Environment file for etcd {{ etcd_version }}
  2. ETCD_DATA_DIR={{ etcd_data_dir }}
  3. ETCD_ADVERTISE_CLIENT_URLS={{ etcd_client_url }}
  4. ETCD_INITIAL_ADVERTISE_PEER_URLS={{ etcd_peer_url }}
  5. ETCD_INITIAL_CLUSTER_STATE={% if etcd_cluster_is_healthy.rc != 0 | bool %}new{% else %}existing{% endif %}
  6. ETCD_METRICS={{ etcd_metrics }}
  7. ETCD_LISTEN_CLIENT_URLS=https://{{ etcd_address }}:2379,https://127.0.0.1:2379
  8. ETCD_ELECTION_TIMEOUT={{ etcd_election_timeout }}
  9. ETCD_HEARTBEAT_INTERVAL={{ etcd_heartbeat_interval }}
  10. ETCD_INITIAL_CLUSTER_TOKEN=k8s_etcd
  11. ETCD_LISTEN_PEER_URLS=https://{{ etcd_address }}:2380
  12. ETCD_NAME={{ etcd_member_name }}
  13. ETCD_PROXY=off
  14. ETCD_INITIAL_CLUSTER={{ etcd_peer_addresses }}
  15. ETCD_AUTO_COMPACTION_RETENTION={{ etcd_compaction_retention }}
  16. {% if etcd_snapshot_count is defined %}
  17. ETCD_SNAPSHOT_COUNT={{ etcd_snapshot_count }}
  18. {% endif %}
  19. {% if etcd_quota_backend_bytes is defined %}
  20. ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}
  21. {% endif %}
  22. # TLS settings
  23. ETCD_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
  24. ETCD_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
  25. ETCD_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
  26. ETCD_CLIENT_CERT_AUTH={{ etcd_secure_client | lower}}
  27. ETCD_PEER_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
  28. ETCD_PEER_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
  29. ETCD_PEER_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
  30. ETCD_PEER_CLIENT_CERT_AUTH={{ etcd_peer_client_auth }}
  31. {% for key, value in etcd_extra_vars.items() %}
  32. {{ key }}={{ value }}
  33. {% endfor %}
  34. {% if host_architecture != "amd64" -%}
  35. ETCD_UNSUPPORTED_ARCH={{host_architecture}}
  36. {%- endif %}