📜  .yml 文件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:51.754000             🧑  作者: Mango

代码示例1
scope: postgres
namespace: /db/
name: postgresql0

restapi:
    listen: 69.87.217.177:8008
    connect_address: 69.87.217.177:8008

etcd:
    host: 45.58.42.212:2379

bootstrap:
    dcs:
        ttl: 30
        loop_wait: 10
        retry_timeout: 10
        maximum_lag_on_failover: 1048576
        postgresql:
            use_pg_rewind: true

    initdb:
    - encoding: UTF8
    - data-checksums

    pg_hba:
    - host replication replicator 127.0.0.1/32 md5
    - host replication replicator 69.87.217.177/0 md5
    - host replication replicator 45.58.39.238/0 md5
    - host all all 0.0.0.0/0 md5

    users:
        admin:
            password: admin
            options:
                - createrole
                - createdb

postgresql:
    listen: 69.87.217.177:5432
    connect_address: 69.87.217.177:5432
    data_dir: /mnt/patroni
    pgpass: /tmp/pgpass
    authentication:
        replication:
            username: replicator
            password: password
        superuser:
            username: postgres
            password: password
    parameters:
        unix_socket_directories: '.'

tags:
    nofailover: false
    noloadbalance: false
    clonefrom: false
    nosync: false