mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-12-10 14:13:33 +01:00
828bd25175
Add a cluster list that overrides the datadirs list, this allows for local creation of data storage directories separate from a list of cluster members.
20 lines
553 B
Django/Jinja
20 lines
553 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
# Minio local/remote volumes.
|
|
{% if minio_server_cluster_nodes | length > 0 %}
|
|
MINIO_VOLUMES="{{ minio_server_cluster_nodes | join(' ') }}"
|
|
{% else %}
|
|
MINIO_VOLUMES="{{ minio_server_datadirs | join(' ') }}"
|
|
{% endif %}
|
|
# Minio cli options.
|
|
MINIO_OPTS="--address {{ minio_server_addr }} {{ minio_server_opts }}"
|
|
|
|
{% if minio_access_key %}
|
|
# Access Key of the server.
|
|
MINIO_ACCESS_KEY="{{ minio_access_key }}"
|
|
{% endif %}
|
|
{% if minio_secret_key %}
|
|
# Secret key of the server.
|
|
MINIO_SECRET_KEY="{{ minio_secret_key }}"
|
|
{% endif %}
|