summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Semushin <vsemushi@redhat.com>2017-03-06 18:51:18 +0100
committerSlava Semushin <vsemushi@redhat.com>2017-03-29 15:50:09 +0200
commitc5da9d90c4c615a68f6eb2e988b24d6ab680993d (patch)
tree3b808eece47038002edd605e05ac9d08d4fc4159
parent3944a993e79f7cec0d801681f10b96894cb92dbc (diff)
downloadopenshift-c5da9d90c4c615a68f6eb2e988b24d6ab680993d.tar.gz
openshift-c5da9d90c4c615a68f6eb2e988b24d6ab680993d.tar.bz2
openshift-c5da9d90c4c615a68f6eb2e988b24d6ab680993d.tar.xz
openshift-c5da9d90c4c615a68f6eb2e988b24d6ab680993d.zip
redeploy-certificates/registry.yml: add openshift_hosted_registry_cert_expire_days parameter.
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates/registry.yml3
1 files changed, 3 insertions, 0 deletions
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: