Browse Source

Make etcdctl connect to localhost out of the box (#5643)

* Make etcdctl connect to localhost out of the box

* etcdctl envs: use admin-.pem instead of member-.pem
pull/5719/head
Jakub Husák 4 years ago
committed by GitHub
parent
commit
2beffe688a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
  1. 6
      roles/etcd/templates/etcd.env.j2

6
roles/etcd/templates/etcd.env.j2

@ -42,3 +42,9 @@ ETCD_PEER_CLIENT_CERT_AUTH={{ etcd_peer_client_auth }}
{% if host_architecture != "amd64" -%} {% if host_architecture != "amd64" -%}
ETCD_UNSUPPORTED_ARCH={{host_architecture}} ETCD_UNSUPPORTED_ARCH={{host_architecture}}
{%- endif %} {%- endif %}
# CLI settings
ETCDCTL_ENDPOINTS=https://127.0.0.1:2379
ETCDCTL_CA_FILE={{ etcd_cert_dir }}/ca.pem
ETCDCTL_KEY_FILE={{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem
ETCDCTL_CERT_FILE={{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem
Loading…
Cancel
Save