diff options
author | Fabian von Feilitzsch <fabian@fabianism.us> | 2017-11-08 10:23:35 -0500 |
---|---|---|
committer | Fabian von Feilitzsch <fabian@fabianism.us> | 2017-11-08 10:49:01 -0500 |
commit | 40aa9376dbb05b531dde8357adc1292055d199e3 (patch) | |
tree | 64e0968061dcf646e575f0a2ebd6f92fa768868e /roles/ansible_service_broker | |
parent | 196891f1a71fa0f0c74404af773d53ede517025a (diff) | |
download | openshift-40aa9376dbb05b531dde8357adc1292055d199e3.tar.gz openshift-40aa9376dbb05b531dde8357adc1292055d199e3.tar.bz2 openshift-40aa9376dbb05b531dde8357adc1292055d199e3.tar.xz openshift-40aa9376dbb05b531dde8357adc1292055d199e3.zip |
Bug 1511044- Slurp the etcd certs instead of using the lookup
Diffstat (limited to 'roles/ansible_service_broker')
-rw-r--r-- | roles/ansible_service_broker/tasks/generate_certs.yml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/roles/ansible_service_broker/tasks/generate_certs.yml b/roles/ansible_service_broker/tasks/generate_certs.yml index 85e67e00c..3da896548 100644 --- a/roles/ansible_service_broker/tasks/generate_certs.yml +++ b/roles/ansible_service_broker/tasks/generate_certs.yml @@ -29,7 +29,16 @@ - set_fact: ansible_service_broker_certs_dir: "{{ openshift.common.config_base }}/ansible-service-broker" +- name: Read in certs for etcd + slurp: + src: '{{ ansible_service_broker_certs_dir }}/{{ item }}' + register: asb_etcd_certs + with_items: + - cert.pem + - client.pem + - client.key + - set_fact: - etcd_ca_cert: "{{ lookup('file', '{{ ansible_service_broker_certs_dir }}/cert.pem') }}" - etcd_client_cert: "{{ lookup('file', '{{ ansible_service_broker_certs_dir }}/client.pem') }}" - etcd_client_key: "{{ lookup('file', '{{ ansible_service_broker_certs_dir }}/client.key') }}" + etcd_ca_cert: "{{ asb_etcd_certs.results.0.content | b64decode }}" + etcd_client_cert: "{{ asb_etcd_certs.results.1.content | b64decode }}" + etcd_client_key: "{{ asb_etcd_certs.results.2.content | b64decode }}" |