Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ minio_group: minio
# Path to the file containing the ENV variables for the Minio server
minio_server_envfile: /etc/default/minio

# Minio server ip/fqdn and port. This makes up the server_addr below
minio_server_ip: ""
minio_server_port: "9091"

# Minio server listen address
minio_server_addr: ":9091"
minio_server_addr: "{{ minio_server_ip }}:{{ minio_server_port}}"

# Minio server data directories
minio_server_datadirs:
Expand All @@ -32,9 +36,9 @@ minio_server_env_extra: ""
# Additional Minio server CLI options
minio_server_opts: ""

# Minio access and secret keys
minio_access_key: ""
minio_secret_key: ""
# Minio root user credentials
minio_root_user: ""
minio_root_password: ""

# Switches to enable/disable the Minio server and/or Minio client installation.
minio_install_server: true
Expand Down
12 changes: 6 additions & 6 deletions templates/minio.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ MINIO_VOLUMES="{{ minio_server_datadirs | join(' ') }}"
# 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 }}"
{% if minio_root_user %}
# Root User of the server.
MINIO_ROOT_USER="{{ minio_root_user }}"
{% endif %}
{% if minio_secret_key %}
# Secret key of the server.
MINIO_SECRET_KEY="{{ minio_secret_key }}"
{% if minio_root_password %}
# Root Password of the server.
MINIO_ROOT_PASSWORD="{{ minio_root_password }}"
{% endif %}

{{ minio_server_env_extra }}