Skip to content

Commit

Permalink
Updated defaults file to conform with deprecated access and secret ke…
Browse files Browse the repository at this point in the history
…ys (#3)
  • Loading branch information
poulpreben authored Jul 30, 2021
1 parent fc3db3e commit b6769a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ minio_server_env_extra: |
# Additional MinIO server CLI options
minio_server_opts: ""

# MinIO access and secret keys
minio_access_key: "minio"
minio_secret_key: "minio123"
# MinIO root username password
# Reading existing values from deprecated access and secret key varibles
minio_root_username: "{{ minio_access_key | default('minio') }}"
minio_root_password: "{{ minio_secret_key | default('minio123') }}"

# Switches to enable/disable the MinIO server and/or MinIO client installation.
minio_install_server: true
Expand Down
4 changes: 2 additions & 2 deletions templates/minio.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ MINIO_OPTS="--address {{ minio_server_addr }} {{ minio_server_opts }}"

{% if minio_access_key %}
# Access Key of the server.
MINIO_ACCESS_KEY="{{ minio_access_key }}"
MINIO_ROOT_USERNAME="{{ minio_root_username }}"
{% endif %}
{% if minio_secret_key %}
# Secret key of the server.
MINIO_SECRET_KEY="{{ minio_secret_key }}"
MINIO_ROOT_PASSWORD="{{ minio_root_password }}"
{% endif %}

{{ minio_server_env_extra }}

0 comments on commit b6769a0

Please sign in to comment.