代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/pigsty 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : pgsql.yml
# Mtime : 2020-05-12
# Mtime : 2021-07-06
# Desc : init postgres cluster/instance
# Path : pgsql.yml
# Copyright (C) 2018-2021 Ruohang Feng ([email protected])
#==============================================================#
#==============================================================#
# Playbook : Init PGSQL Cluster/Instance
#==============================================================#
# Init cluster `pg-test`
# pgsql.yml -l pg-test
#
# Init instance (10.10.10.13) among cluster `pg-test`
# pgsql.yml -l 10.10.10.13
#
# Re-init postgres instance only on node 10.10.10.13
# pgsql.yml -l10.10.10.13 --tags=postgres
#
# Re-deploy monitor component
# pgsql.yml --tags=monitor
#
# Replace exporter with new binary version
# pgsql.yml --tags=monitor -e exporter_install=binary
#
# Refresh (haproxy) services
# pgsql.yml --tags=service
#
# Refresh HBA rules
# pgsql.yml --tags=pg_hba
#
# Register cluster/instance to infrastructure
# pgsql.yml --tags=register # register all
# pgsql.yml --tags=register_consul # service discovery
# pgsql.yml --tags=register_prometheus # monitor target
# pgsql.yml --tags=register_grafana # pgsql datasource
# pgsql.yml --tags=register_nginx # haproxy admin page
#==============================================================#
#---------------------------------------------------------------
- name: Infra Init # init infra on common database node
become: yes
hosts: all
gather_facts: no
tags: infra
roles:
- role: node # init common database node
tags: node
- role: consul # init dcs:consul clients
tags: [ dcs , consul ]
#---------------------------------------------------------------
- name: Pgsql Init # init postgres cluster/instance
become: yes
hosts: all
gather_facts: no
tags: pgsql
roles:
- role: postgres # init postgres pgbouncer patroni
tags: postgres
- role: monitor # init monitor exporters
tags: monitor
- role: service # init service , lb , vip
tags: service
- role: register # register cluster/instance to infra
tags: register
#---------------------------------------------------------------
...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。