HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Set Database HBA

PTK provides functionality for adding pg_hba.conf information to the database.

Prerequisites

You need to prepare the information you want to set up in advance. For example, to add an entry under host, prepare the following information:

"host all all <IP>/32 sha256"

Command

ptk cluster set-hba [flags]

Flags specifically contains the following parameters:

  • -H, --host: Used to specify an IP list.
  • -i, --id: Used to specify an ID list.
  • -v, --value: Indicates new pg_hba.conf entry information.

Example of Specify IP

ptk cluster -n <CLUSTER_NAME> set-hba -H <IP> -v <new pg_hba.conf entry>

Example of Specify ID

ptk cluster -n <CLUSTER_NAME> set-hba -i <ID> -v <new pg_hba.conf entry>

Example of Specify Multiple IPs

ptk cluster -n <CLUSTER_NAME> set-hba -H <IP> -H <IP> -v <new pg_hba.conf entry>
Copyright © 2011-2024 www.enmotech.com All rights reserved.