Browse Source
etcd: use dynamic group for certs generation check (#10610)
etcd: use dynamic group for certs generation check (#10610)
We take advantage of group_by to create the list of nodes needing new certs, instead of manually looping inside a Jinja template. This should make the role more readable and less susceptible to white space problems.pull/10616/head
Max Gautier
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 63 deletions
Split View
Diff Options
-
53roles/etcd/tasks/check_certs.yml
-
21roles/etcd/tasks/gen_certs_script.yml
-
10roles/etcd/vars/main.yml
@ -0,0 +1,10 @@ |
|||
--- |
|||
cert_files: |
|||
master: |
|||
- "{{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem" |
|||
- "{{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem" |
|||
- "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem" |
|||
- "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem" |
|||
node: |
|||
- "{{ etcd_cert_dir}}/node-{{ inventory_hostname }}.pem" |
|||
- "{{ etcd_cert_dir}}/node-{{ inventory_hostname }}-key.pem" |
Write
Preview
Loading…
Cancel
Save