Explorar o código

ensured to always use a certificate for the router

Julien Brochet %!s(int64=7) %!d(string=hai) anos
pai
achega
470524c915
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      roles/openshift_hosted/tasks/router/router.yml

+ 1 - 1
roles/openshift_hosted/tasks/router/router.yml

@@ -50,7 +50,7 @@
     src: "{{ item }}"
   with_items: "{{ openshift_hosted_routers | oo_collect(attribute='certificate') |
                   oo_select_keys_from_list(['keyfile', 'certfile', 'cafile']) }}"
-  when: not openshift_hosted_router_create_certificate | bool
+  when: ( not openshift_hosted_router_create_certificate | bool ) or openshift_hosted_router_certificate != {}
 
 - name: Create the router service account(s)
   oc_serviceaccount: