feat: refactor role to work with versions after 2021-07-08T01-15-01Z
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
811c5f3fd8
commit
a3807effc8
|
@ -20,6 +20,9 @@ minio_data_dirs:
|
|||
minio_bind_ip: 127.0.0.1
|
||||
minio_bind_port: 61000
|
||||
|
||||
minio_console_bind_ip: 127.0.0.1
|
||||
minio_console_bind_port: 61001
|
||||
|
||||
# @var minio_server_env_extra:description: Additional environment variables to be set in minio server environment.
|
||||
minio_server_env_extra: []
|
||||
|
||||
|
@ -32,6 +35,13 @@ minio_access_key: "demo"
|
|||
# @var minio_secret_key:description: Minio secret key (should be changed for prod environments)
|
||||
minio_secret_key: "passphrase"
|
||||
|
||||
# @var minio_kms_secret_key:description: >
|
||||
# The key to use for encrypting the MinIO backend (users, groups, policies, and server configuration).
|
||||
# Use the following format when specifying the encryption key: `<key-name>:<encryption-key>`
|
||||
# Replace the `<key-name>` with any string. You must use this key name if you later migrate to using
|
||||
# a dedicated KMS for managing encryption keys. Replace `<encryption-key>` with a 32-bit base64 encoded value.
|
||||
# @var minio_kms_secret_key:default: $ "_unset_"
|
||||
|
||||
minio_cronjobs: []
|
||||
# @var minio_cronjobs:example: >
|
||||
# minio_cronjobs:
|
||||
|
|
|
@ -24,7 +24,7 @@ def test_minio_conn_error(host):
|
|||
"curl -s -w '%{http_code}' http://localhost:61000/minio/health/live -o /dev/null"
|
||||
).stdout
|
||||
)
|
||||
body = host.run("curl -sX GET http://localhost:61000/minio/prometheus/metrics").stdout
|
||||
body = host.run("curl -sX GET http://localhost:61000/minio/v2/metrics/cluster").stdout
|
||||
|
||||
assert code == 200
|
||||
assert "minio_version_info" in body
|
||||
assert "minio_software_version_info" in body
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#jinja2: lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
MINIO_VOLUMES="{{ minio_data_dirs | join(' ') }}"
|
||||
MINIO_OPTS="--address {{ minio_bind_ip }}:{{ minio_bind_port }} {{ minio_server_opts | join(' ') }}"
|
||||
MINIO_OPTS="--address {{ minio_bind_ip }}:{{ minio_bind_port }} --console-address {{ minio_console_bind_ip }}:{{ minio_console_bind_port }} {{ minio_server_opts | join(' ') }}"
|
||||
|
||||
{% if minio_access_key %}
|
||||
MINIO_ACCESS_KEY="{{ minio_access_key }}"
|
||||
{% endif %}
|
||||
{% if minio_secret_key %}
|
||||
MINIO_SECRET_KEY="{{ minio_secret_key }}"
|
||||
MINIO_ROOT_USER="{{ minio_access_key }}"
|
||||
MINIO_ROOT_PASSWORD="{{ minio_secret_key }}"
|
||||
{% if minio_kms_secret_key is defined %}
|
||||
MINIO_KMS_SECRET_KEY={{ minio_kms_secret_key }}
|
||||
{% endif %}
|
||||
|
||||
{% for extra in minio_server_env_extra %}
|
||||
|
|
Loading…
Reference in New Issue