8 lines
325 B
Django/Jinja
8 lines
325 B
Django/Jinja
#!/bin/bash
|
|
DATASTORE_TYPE=kubernetes \
|
|
{% if inventory_hostname in groups['kube_control_plane'] %}
|
|
KUBECONFIG=/etc/kubernetes/admin.conf \
|
|
{% else %}
|
|
KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
|
|
{% endif %}
|
|
{{ bin_dir }}/calicoctl {% if calico_version is version('v3.20.0', '>=') %}--allow-version-mismatch{% endif %} "$@"
|