|
@@ -57,6 +57,9 @@
|
|
|
--hostnames={{ hostvars[item].openshift.common.all_hostnames | join(',') }}
|
|
|
--cert={{ openshift_generated_configs_dir }}/master-{{ hostvars[item].openshift.common.hostname }}/master.server.crt
|
|
|
--key={{ openshift_generated_configs_dir }}/master-{{ hostvars[item].openshift.common.hostname }}/master.server.key
|
|
|
+ {% if openshift_version | oo_version_gte_3_5_or_1_5(openshift.common.deployment_type) | bool %}
|
|
|
+ --expire-days={{ openshift_master_cert_expire_days }}
|
|
|
+ {% endif %}
|
|
|
--signer-cert={{ openshift_ca_cert }}
|
|
|
--signer-key={{ openshift_ca_key }}
|
|
|
--signer-serial={{ openshift_ca_serial }}
|
|
@@ -84,6 +87,9 @@
|
|
|
--signer-serial={{ openshift_ca_serial }}
|
|
|
--user=system:openshift-master
|
|
|
--basename=openshift-master
|
|
|
+ {% if openshift_version | oo_version_gte_3_5_or_1_5(openshift.common.deployment_type) | bool %}
|
|
|
+ --expire-days={{ openshift_master_cert_expire_days }}
|
|
|
+ {% endif %}
|
|
|
args:
|
|
|
creates: "{{ openshift_generated_configs_dir }}/master-{{ hostvars[item].openshift.common.hostname }}/openshift-master.kubeconfig"
|
|
|
with_items: "{{ hostvars
|