ansible-minio/templates/minio.env.j2
Ben Kochie 828bd25175
Add option to create minio clusters
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.
2018-06-25 23:00:45 +02:00

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 %}