Install and configure the Minio S3 compatible object storage server on RHEL/CentOS and Debian/Ubuntu.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
minio_home_dir: /opt/minio
minio_server_bin: "{{ minio_home_dir }}/bin/minio"
minio_client_bin: "{{ minio_home_dir }}/bin/minioc"
Installation path of the Minio server and client binaries.
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.
minio_user: minio
minio_group: minio
Name and group of the user running the minio server. NB: This role automatically creates the minio user and/or group if these does not exist in the system.
minio_server_envfile: "{{ minio_home_dir }}/minio.env"
Path to the file containing the minio server configuration ENV variables.
minio_server_addr: ":9091"
The Minio server listen address.
minio_server_datadirs:
- '/opt/minio/data'
Directories of the folder containing the minio server data
minio_server_make_datadirs: true
Create directories from minio_server_datadirs
minio_server_cluster_nodes: [ ]
Set a list of nodes to create a distributed cluster.
In this mode, ansible will create your server datadirs, but use this list for the server startup. Note you will need a number of disks to satisfy Minio's distributed storage requirements.
Example:
minio_server_datadirs:
- '/minio-data'
- ...
minio_server_cluster_nodes:
- 'https://server1/minio-data'
- 'https://server2/minio-data'
- 'https://server3/minio-data'
- ...
minio_server_env_extra: ""
Additional environment variables to be set in Minio server environment
minio_server_opts: ""
Additional CLI options that must be appended to the minio server start command.
minio_access_key: ""
minio_secret_key: ""
Minio access and secret keys.
minio_install_server: true
minio_install_client: true
Switches to disable minio server and/or minio client installation.
None.
- name: "Install Minio"
hosts: all
become: yes
roles:
- { role: ansible-minio }
vars:
minio_server_datadirs: [ "/opt/minio/data" ]
See changelog.
MIT