gen_certs.yml 886 B

1234567891011121314151617
  1. ---
  2. - name: Calico Node | Generate OpenShift-etcd certs
  3. include: ../../../roles/etcd_client_certificates/tasks/main.yml
  4. vars:
  5. etcd_cert_prefix: calico.etcd-
  6. etcd_cert_config_dir: "{{ openshift.common.config_base }}/calico"
  7. embedded_etcd: "{{ hostvars[groups.oo_first_master.0].openshift.master.embedded_etcd }}"
  8. etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}"
  9. etcd_cert_subdir: "openshift-calico-{{ openshift.common.hostname }}"
  10. - name: Calico Node | Set etcd cert location facts
  11. set_fact:
  12. calico_etcd_ca_cert_file: "/etc/origin/calico/calico.etcd-ca.crt"
  13. calico_etcd_cert_file: "/etc/origin/calico/calico.etcd-client.crt"
  14. calico_etcd_key_file: "/etc/origin/calico/calico.etcd-client.key"
  15. calico_etcd_endpoints: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_urls | join(',') }}"
  16. calico_etcd_cert_dir: "/etc/origin/calico/"