Skip to content
Snippets Groups Projects
Commit 89ade65a authored by Brad Beam's avatar Brad Beam Committed by Matthew Mosesohn
Browse files

Fixing etcd certs for calico rr (#2374)

parent 128d3ef9
Branches
Tags
No related merge requests found
...@@ -48,7 +48,10 @@ ...@@ -48,7 +48,10 @@
- name: Calico-rr | Configure route reflector - name: Calico-rr | Configure route reflector
command: |- command: |-
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \ {{ bin_dir }}/etcdctl \
--peers={{ etcd_access_addresses }} \
--cert-file {{ etcd_cert_dir }}/node-{{ groups['etcd'][0] }}.pem \
--key-file {{ etcd_cert_dir }}/node-{{ groups['etcd'][0] }}-key.pem \
set /calico/bgp/v1/rr_v4/{{ rr_ip }} \ set /calico/bgp/v1/rr_v4/{{ rr_ip }} \
'{ '{
"ip": "{{ rr_ip }}", "ip": "{{ rr_ip }}",
...@@ -57,9 +60,6 @@ ...@@ -57,9 +60,6 @@
retries: 4 retries: 4
delay: "{{ retry_stagger | random + 3 }}" delay: "{{ retry_stagger | random + 3 }}"
delegate_to: "{{groups['etcd'][0]}}" delegate_to: "{{groups['etcd'][0]}}"
environment:
ETCDCTL_CERT: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem"
ETCDCTL_KEY: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem"
- meta: flush_handlers - meta: flush_handlers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment