mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-21 11:15:18 +01:00
Add 'minio_server_release' and 'minio_client_release' variable.
- Default = "" = lastest
This commit is contained in:
parent
61c242e187
commit
4de97d3a39
@ -25,6 +25,14 @@ minio_client_bin: /usr/local/bin/mc
|
||||
|
||||
Installation path of the Minio server and client binaries.
|
||||
|
||||
```yaml
|
||||
minio_server_release: ""
|
||||
minio_client_release: ""
|
||||
```
|
||||
|
||||
Release to install for both server and client; lastest if the default.
|
||||
Can be 'RELEASE.2019-06-27T21-13-50Z' for instance.
|
||||
|
||||
```yaml
|
||||
minio_user: minio
|
||||
minio_group: minio
|
||||
|
@ -4,6 +4,10 @@
|
||||
minio_server_bin: /usr/local/bin/minio
|
||||
minio_client_bin: /usr/local/bin/mc
|
||||
|
||||
# Minio release to install. default if lastet
|
||||
minio_server_release: ""
|
||||
minio_client_release: ""
|
||||
|
||||
# Runtime user and group for the Minio server service
|
||||
minio_user: minio
|
||||
minio_group: minio
|
||||
|
@ -1,8 +1,18 @@
|
||||
---
|
||||
|
||||
- name: Compose the Minio client download url
|
||||
- name: Compose the Minio client download base url
|
||||
set_fact:
|
||||
_minio_client_download_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch }}/mc"
|
||||
_minio_client_download_base_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch }}"
|
||||
|
||||
- name: Compose the Minio client download url with lastest release
|
||||
set_fact:
|
||||
_minio_client_download_url: "{{ _minio_client_download_base_url }}/mc"
|
||||
when: minio_client_release | length == 0
|
||||
|
||||
- name: "Compose the Minio client download url with release {{ minio_client_release }}"
|
||||
set_fact:
|
||||
_minio_client_download_url: "{{ _minio_client_download_base_url }}/archive/mc.{{ minio_client_release }}"
|
||||
when: minio_client_release | length > 0
|
||||
|
||||
- name: "Get the Minio client checksum for {{ go_arch }} architecture"
|
||||
set_fact:
|
||||
|
@ -1,8 +1,17 @@
|
||||
---
|
||||
|
||||
- name: Compose the Minio server download url
|
||||
- name: Compose the Minio server download base url
|
||||
set_fact:
|
||||
_minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch }}/minio"
|
||||
_minio_server_download_base_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch }}"
|
||||
|
||||
- name: Compose the Minio server download url with lastest release
|
||||
set_fact:
|
||||
_minio_server_download_url: "{{ _minio_server_download_base_url }}/minio"
|
||||
when: minio_server_release | length == 0
|
||||
|
||||
- name: "Compose the Minio server download url with release {{ minio_server_release }}"
|
||||
set_fact:
|
||||
_minio_server_download_url: "{{ _minio_server_download_base_url }}/archive/minio.{{ minio_server_release }}"
|
||||
when: minio_server_release | length > 0
|
||||
|
||||
- name: "Get the Minio server checksum for {{ go_arch }} architecture"
|
||||
set_fact:
|
||||
|
Loading…
Reference in New Issue
Block a user