This role install and configure Minio in a linux server.
None
PS: https://github.com/minio/minio/tree/master/docs/deployment/kernel-tuning
chmod +x kernel-tuning.sh
bash kernel-tuning.sh
cat /sys/kernel/mm/transparent_hugepage/enabled
echo madvise | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
vim /etc/default/grub
GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap transparent_hugepage=madvise"
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
Available variables are listed below along with default values (see defaults\main.yaml
)
-
Wheter to install or not minio server and minio client
minio_install_server: true minio_install_client: true
-
Minio server installation details
Minio UNIX user/group
minio_group: minio minio_user: minio
TLS: It is not supported temporarily. It is recommended to use nginx load balancing and configure TLS.
Minio server IP address (
minio_server_address
), if empty server listen in all available IP addresses, and server/console listening ports (minio_server_port
andminio_console_port
)minio_server_port: "9091" minio_server_addr: "" minio_console_port: "9092"
Minio admin user and password
minio_root_user: "minioadmin" minio_root_password: "minioadmin"
Minio site region It is recommended to add manually.
Minio data directories (
minio_server_datadirs
) and whether force the creation in case they do not exist (minio_server_make_datadirs
)minio_server_make_datadirs: true minio_server_datadirs: - /data1/export1 - /data1/export2
-
Minio client configuration
Installed, self configuration required!
Deploy
cd /root/.ansible/roles
git clone https://github.com/skymyyang/ansible-minio-cluster-install.git
mv ansible-minio-cluster-install skymyyang.minio
cd skymyyang.minio
cd test
ansible-playbook site.yml -i hosts
MIT
Forked from ricsanfre/ansible-role-minio