Cleanup the options.

This commit is contained in:
Andrea Dell'Amico 2022-05-26 17:28:16 +02:00
parent 7c45849996
commit e720e52461
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
4 changed files with 11 additions and 14 deletions

View File

@ -28,7 +28,7 @@ minio_data_prefix: /storage
minio_volume_prefix: 'minio' minio_volume_prefix: 'minio'
minio_volume_subdir: 'data' minio_volume_subdir: 'data'
minio_port: 9000 minio_port: 9000
minio_volumes: 'https://{{ minio_server_name_prefix }}{%raw%}{{%endraw%}1...{{ minio_server_instances_num }}{%raw%}}{%endraw%}.{{ minio_server_domain_name }}:{{ minio_port }}/{{ minio_data_prefix }}/{{ minio_volume_prefix }}{%raw%}{{%endraw%}1...{{ minio_disk_volumes }}{%raw%}}{%endraw%}/{{ minio_volume_subdir }}' minio_volumes: 'https://{{ minio_server_name_prefix }}{%raw%}{{%endraw%}1...{{ minio_server_instances_num }}{%raw%}}{%endraw%}.{{ minio_server_domain_name }}:{{ minio_port }}{{ minio_data_prefix }}/{{ minio_volume_prefix }}{%raw%}{{%endraw%}1...{{ minio_disk_volumes }}{%raw%}}{%endraw%}/{{ minio_volume_subdir }}'
minio_dedicated_console: true minio_dedicated_console: true
minio_console_port: 9001 minio_console_port: 9001
@ -47,7 +47,7 @@ minio_root_user: minio_adm
minio_storage_class_standard: 4 minio_storage_class_standard: 4
minio_storage_class_rrs: 2 minio_storage_class_rrs: 2
# #
minio_prometheus_url: '{{ minio_ui_url }}' minio_prometheus_url: 'https://prometheus.localhost'
minio_prometheus_jobid: 'minio-job' minio_prometheus_jobid: 'minio-job'
minio_prometheus_auth_type: public minio_prometheus_auth_type: public
minio_external_oidc: false minio_external_oidc: false
@ -55,8 +55,8 @@ minio_openid_config_url: http://localhost:8080/auth/
minio_openid_realm: 'realm' minio_openid_realm: 'realm'
minio_openid_client_id: 'minio_client_id' minio_openid_client_id: 'minio_client_id'
# minio_openid_client_secret: 'use a vault' # minio_openid_client_secret: 'use a vault'
minio_openid_client_name: 'minio_client_name' minio_openid_claim_name: 'policy'
minio_openid_set_claim_prefix: false minio_openid_set_claim_prefix: false
minio_openid_claim_prefix: 'minio_' minio_openid_claim_prefix: 'minio_'
minio_openid_scopes: '' minio_openid_scopes: ''
minio_openid_redirect_uri: '' minio_openid_redirect_uri: '{{ minio_ui_url }}/oauth_callback'

View File

@ -3,8 +3,3 @@
service: service:
name: minio name: minio
state: restarted state: restarted
- name: reload minio
service:
name: minio
state: reloaded

View File

@ -21,6 +21,8 @@
owner: '{{ minio_username }}' owner: '{{ minio_username }}'
group: '{{ minio_username }}' group: '{{ minio_username }}'
mode: 0440 mode: 0440
notify: Restart minio
tags: ['minio', 'minio_baremetal', 'minio_conf']
- name: Change the ownership of the minio data disks - name: Change the ownership of the minio data disks
file: file:
@ -67,7 +69,7 @@
group: '{{ minio_username }}' group: '{{ minio_username }}'
mode: 0640 mode: 0640
remote_src: true remote_src: true
notify: reload minio notify: Restart minio
- name: Copy the certificate file where minio expects it - name: Copy the certificate file where minio expects it
copy: copy:
@ -77,7 +79,7 @@
group: '{{ minio_username }}' group: '{{ minio_username }}'
mode: 0640 mode: 0640
remote_src: true remote_src: true
notify: reload minio notify: Restart minio
- name: Copy the CA trust file on deb systems - name: Copy the CA trust file on deb systems
copy: copy:
@ -87,7 +89,7 @@
group: '{{ minio_username }}' group: '{{ minio_username }}'
mode: 0640 mode: 0640
remote_src: true remote_src: true
notify: reload minio notify: Restart minio
when: ansible_distribution_file_variety == "Debian" when: ansible_distribution_file_variety == "Debian"
- name: Copy the CA trust file on EL systems - name: Copy the CA trust file on EL systems
@ -98,7 +100,7 @@
group: '{{ minio_username }}' group: '{{ minio_username }}'
mode: 0640 mode: 0640
remote_src: true remote_src: true
notify: reload minio notify: Restart minio
when: ansible_distribution_file_variety == "RedHat" when: ansible_distribution_file_variety == "RedHat"
- name: Install a script that updates the certificates upon renewal - name: Install a script that updates the certificates upon renewal

View File

@ -43,7 +43,7 @@ MINIO_PROMETHEUS_AUTH_TYPE={{ minio_prometheus_auth_type }}
MINIO_IDENTITY_OPENID_CONFIG_URL={{ minio_openid_config_url }} MINIO_IDENTITY_OPENID_CONFIG_URL={{ minio_openid_config_url }}
MINIO_IDENTITY_OPENID_CLIENT_ID={{ minio_openid_client_id }} MINIO_IDENTITY_OPENID_CLIENT_ID={{ minio_openid_client_id }}
MINIO_IDENTITY_OPENID_CLIENT_SECRET={{ minio_openid_client_secret }} MINIO_IDENTITY_OPENID_CLIENT_SECRET={{ minio_openid_client_secret }}
MINIO_IDENTITY_OPENID_CLAIM_NAME={{ minio_openid_client_name }} MINIO_IDENTITY_OPENID_CLAIM_NAME={{ minio_openid_claim_name }}
{% if minio_openid_set_claim_prefix %} {% if minio_openid_set_claim_prefix %}
MINIO_IDENTITY_OPENID_CLAIM_PREFIX={{ minio_openid_claim_prefix }} MINIO_IDENTITY_OPENID_CLAIM_PREFIX={{ minio_openid_claim_prefix }}
{% endif %} {% endif %}