xci: kubespray: Generate and use SSL certificate for HAProxy 51/55051/5
authorMarkos Chandras <mchandras@suse.de>
Fri, 6 Apr 2018 09:30:32 +0000 (10:30 +0100)
committerMarkos Chandras <mchandras@suse.de>
Fri, 6 Apr 2018 11:14:59 +0000 (12:14 +0100)
In the OpenStack-Ansible installers we are using the XCI ssl
certificates for the endpoints but in kubespray we are generating them
on the fly. In order to keep both setups as close as possible, we can
use the XCI certificates in kubespray as well.

Change-Id: I1ca55127fe747618205394c02b3d44bb573435f4
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/installer/kubespray/playbooks/configure-opnfvhost.yml
xci/installer/kubespray/playbooks/configure-targethosts.yml

index af3267e..f4a0602 100644 (file)
@@ -66,5 +66,8 @@
         name: ansible
         version: "{{ xci_kube_ansible_pip_version }}"
 
+    - name: Configure SSL certificates
+      include_tasks: "{{ xci_path }}/xci/playbooks/manage-ssl-certs.yml"
+
     - name: Manage SSH keys
       include_tasks: "{{ xci_path }}/xci/playbooks/manage-ssh-keys.yml"
index 4efe82f..dd7024f 100644 (file)
@@ -23,4 +23,6 @@
       when:  xci_flavor == 'ha'
     - role: "haproxy_server"
       haproxy_service_configs: "{{ haproxy_default_services}}"
+      haproxy_user_ssl_cert: "/etc/ssl/certs/xci.crt"
+      haproxy_user_ssl_key: "/etc/ssl/private/xci.key"
       when:  xci_flavor == 'ha'