Skip to content

Commit

Permalink
Add 'minio_server_release' and 'minio_client_release' variable.
Browse files Browse the repository at this point in the history
- Default = "" = lastest
  • Loading branch information
sberthier committed Jul 18, 2019
1 parent 61c242e commit 4de97d3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions tasks/install-client.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 11 additions & 2 deletions tasks/install-server.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
---
- name: Compose the Minio server download base url
set_fact:
_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
- name: "Compose the Minio server download url with release {{ minio_server_release }}"
set_fact:
_minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch }}/minio"
_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:
Expand Down

0 comments on commit 4de97d3

Please sign in to comment.