16 Star 91 Fork 13

Gitee 极速下载/pigsty

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Vonng/pigsty
克隆/下载
mongo.yml 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
Vonng 提交于 2024-08-27 22:25 . update v3.0.0 info on README.md
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : mongo.yml
# Desc : init mongo/ferretdb on pigsty nodes
# Ctime : 2023-08-16
# Mtime : 2023-10-04
# Path : mongo.yml
# Author : Ruohang Feng ([email protected])
# License : AGPLv3
#==============================================================#
- name: MONGO
become: yes
hosts: all
gather_facts: no
vars:
# mongo_pgurl: 'postgres:///' # mongo/ferretdb underlying postgresql url, required
# mongo_listen: '' # mongo/ferretdb listen address, '' for all addr
# mongo_port: 27017 # mongo/ferretdb listen port, 27017 by default
# mongo_exporter_port: 9216 # mongo/ferretdb exporter port, 9216 by default
# mongo_extra_vars: '' # extra environment variables for mongo/ferretdb
roles:
- { role: node_id , tags: node-id } # get node identity (always)
- { role: ferret , tags: ferret } # init mongo/ferretdb on nodes
#---------------------------------------------------------------
# Usage : https://pigsty.io/docs/ferret/
#---------------------------------------------------------------
# 1. Define mongo/ferret cluster in pigsty.yml
# 2. run ./mongo.yml -l <cls> to deploy mongo/ferret cluster
#
# To remove a mongo cluster:
# ./mongo.yml -e mongo_purge=true -t mongo_purge
#---------------------------------------------------------------
# Example
#---------------------------------------------------------------
# ferret:
# hosts:
# 10.10.10.45: { mongo_seq: 1 }
# 10.10.10.46: { mongo_seq: 2 }
# 10.10.10.47: { mongo_seq: 3 }
# vars:
# mongo_cluster: ferret
# mongo_pgurl: 'postgres://test:[email protected]:5436/test'
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# mongo_check : check mongo identity
# mongo_dbsu : create os user mongod
# mongo_install : install mongo/ferretdb rpm
# mongo_purge : purge mongo/ferretdb cluster
# mongo_config : config mongo/ferretdb
# mongo_cert : issue mongo/ferretdb ssl certs
# mongo_launch : launch mongo/ferretdb service
# mongo_register : register mongo/ferretdb to prometheus
#---------------------------------------------------------------
...
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/pigsty.git
[email protected]:mirrors/pigsty.git
mirrors
pigsty
pigsty
dev

搜索帮助