diff options
author | Dan Osborne <djosborne10@gmail.com> | 2017-05-19 14:49:52 -0700 |
---|---|---|
committer | Dan Osborne <djosborne10@gmail.com> | 2017-05-24 16:20:04 -0700 |
commit | 854a77ce23135f0ef27c79338b48aa53e49d8202 (patch) | |
tree | a4c296302c48002d384b298e43d5749480e821d0 /roles/calico/tasks/gen_certs.yml | |
parent | 8c57b7f62f6351d03c1e28d7cff88279fc16f88a (diff) | |
download | openshift-854a77ce23135f0ef27c79338b48aa53e49d8202.tar.gz openshift-854a77ce23135f0ef27c79338b48aa53e49d8202.tar.bz2 openshift-854a77ce23135f0ef27c79338b48aa53e49d8202.tar.xz openshift-854a77ce23135f0ef27c79338b48aa53e49d8202.zip |
Support byo etcd for calico
Diffstat (limited to 'roles/calico/tasks/gen_certs.yml')
-rw-r--r-- | roles/calico/tasks/gen_certs.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/calico/tasks/gen_certs.yml b/roles/calico/tasks/gen_certs.yml new file mode 100644 index 000000000..2e6aa114e --- /dev/null +++ b/roles/calico/tasks/gen_certs.yml @@ -0,0 +1,17 @@ +--- +- name: Calico Node | Generate OpenShift-etcd certs + include: ../../../roles/etcd_client_certificates/tasks/main.yml + vars: + etcd_cert_prefix: calico.etcd- + etcd_cert_config_dir: "{{ openshift.common.config_base }}/calico" + embedded_etcd: "{{ hostvars[groups.oo_first_master.0].openshift.master.embedded_etcd }}" + etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}" + etcd_cert_subdir: "openshift-calico-{{ openshift.common.hostname }}" + +- name: Calico Node | Set etcd cert location facts + set_fact: + calico_etcd_ca_cert_file: "/etc/origin/calico/calico.etcd-ca.crt" + calico_etcd_cert_file: "/etc/origin/calico/calico.etcd-client.crt" + calico_etcd_key_file: "/etc/origin/calico/calico.etcd-client.key" + calico_etcd_endpoints: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_urls | join(',') }}" + calico_etcd_cert_dir: "/etc/origin/calico/" |