瀏覽代碼

redeploy-certificates/registry.yml: add openshift_hosted_registry_cert_expire_days parameter.

Slava Semushin 8 年之前
父節點
當前提交
c5da9d90c4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      playbooks/common/openshift-cluster/redeploy-certificates/registry.yml

+ 3 - 0
playbooks/common/openshift-cluster/redeploy-certificates/registry.yml

@@ -69,6 +69,9 @@
         --hostnames="{{ docker_registry_service_ip.results.clusterip }},docker-registry.default.svc.cluster.local,{{ docker_registry_route_hostname }}"
         --cert={{ openshift.common.config_base }}/master/registry.crt
         --key={{ openshift.common.config_base }}/master/registry.key
+        {% if openshift_version | oo_version_gte_3_5_or_1_5(openshift.common.deployment_type) | bool %}
+        --expire-days={{ openshift_hosted_registry_cert_expire_days | default(730) }}
+        {% endif %}
 
     - name: Update registry certificates secret
       oc_secret: