Giter Club home page Giter Club logo

ansible-minio-cluster-install's Introduction

Ansible Role: Minio Server Cluster Installation and Configuration

This role install and configure Minio in a linux server.

Requirements

None

Kernel tweaks

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

Role Variables

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 and minio_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!

Example

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

License

MIT

Forked from ricsanfre/ansible-role-minio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.