From c5da9d90c4c615a68f6eb2e988b24d6ab680993d Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Mon, 6 Mar 2017 18:51:18 +0100 Subject: redeploy-certificates/registry.yml: add openshift_hosted_registry_cert_expire_days parameter. --- playbooks/common/openshift-cluster/redeploy-certificates/registry.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'playbooks/common/openshift-cluster/redeploy-certificates') diff --git a/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml b/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml index 08ebfe735..e82996cf4 100644 --- a/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml +++ b/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: -- cgit v1.2.3