Skip to content

Instantly share code, notes, and snippets.

@morph027
Created October 23, 2017 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morph027/6c12bd30a1e302af743647a8c4381fe5 to your computer and use it in GitHub Desktop.
Save morph027/6c12bd30a1e302af743647a8c4381fe5 to your computer and use it in GitHub Desktop.
Ansible Jinja2 template for generating Minio cluster systemd control script
MINIO_VOLUMES={% for minio_node in minio_nodes -%}
https://{{ minio_node }}/home/minio/volume
{%- if not loop.last %} {% endif -%}
{%- endfor %}
{% if minio_access_key %}
MINIO_ACCESS_KEY={{ minio_access_key }}
{% endif %}
{% if minio_secret_key %}
MINIO_SECRET_KEY={{ minio_secret_key }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment