代码拉取完成,页面将自动刷新
#!/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
#---------------------------------------------------------------
...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。