15 Star 88 Fork 12

Gitee 极速下载 / pigsty

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Vonng/pigsty
克隆/下载
minio.yml 3.01 KB
一键复制 编辑 原始数据 按行查看 历史
Vonng 提交于 2023-10-16 09:52 . fix: minio/redis on ubuntu/debian
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : minio.yml
# Desc : setup minio service
# Ctime : 2022-11-10
# Mtime : 2023-10-04
# Path : minio.yml
# Author : Ruohang Feng (rh@vonng.com)
# License : AGPLv3
#==============================================================#
- name: MINIO
become: yes
hosts: all
gather_facts: no
roles:
- { role: node_id , tags: node-id } # get node identity (always)
- { role: minio , tags: minio ,when: minio_cluster is defined and minio_seq is defined }
#---------------------------------------------------------------
# Usage
#---------------------------------------------------------------
# 1. Make sure all nodes/disks are identical, and mounted properly
# 2. Define minio cluster in pigsty.yml
# 3. run ./minio.yml -l <cls> to deploy minio cluster
#
#---------------------------------------------------------------
# Example
#---------------------------------------------------------------
# Single Node Single Driver (DEFAULT)
# minio: { hosts: { 10.10.10.10: { minio_seq: 1 } }, vars: { minio_cluster: minio } }
#
# Multi Node x Multi Driver Example
# minio:
# hosts:
# 10.10.10.10: { minio_seq: 1 }
# 10.10.10.11: { minio_seq: 2 }
# 10.10.10.12: { minio_seq: 3 }
# vars:
# minio_cluster: minio
# minio_data: '/data{1...2}' # use two disk per node
# minio_node: '${minio_cluster}-${minio_seq}.pigsty' # minio node name pattern
# haproxy_services:
# - name: minio
# port: 9002
# options:
# - option httpchk
# - option http-keep-alive
# - http-check send meth OPTIONS uri /minio/health/live
# - http-check expect status 200
# servers:
# - { name: minio-1 ,ip: 10.10.10.10 , port: 9000 , options: 'check-ssl ca-file /etc/pki/ca.crt check port 9000' }
# - { name: minio-2 ,ip: 10.10.10.11 , port: 9000 , options: 'check-ssl ca-file /etc/pki/ca.crt check port 9000' }
# - { name: minio-3 ,ip: 10.10.10.12 , port: 9000 , options: 'check-ssl ca-file /etc/pki/ca.crt check port 9000' }
#
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# minio-id : generate minio identity
# minio_os_user : create os user minio
# minio_install : install minio/mcli rpm
# minio_clean : remove minio data (not default)
# minio_dir : create minio directories
# minio_config : generate minio config
# - minio_conf : minio main config
# - minio_cert : minio ssl cert
# - minio_dns : write minio dns records
# minio_launch : launch minio service
# minio_register : register minio to prometheus
# minio_provision : create minio aliases/buckets/users
# - minio_alias : create minio client alias
# - minio_bucket : create minio buckets
# - minio_user : create minio biz users
#---------------------------------------------------------------
...
Python
1
https://gitee.com/mirrors/pigsty.git
git@gitee.com:mirrors/pigsty.git
mirrors
pigsty
pigsty
master

搜索帮助