https://github.com/tuffnatty/pg_conftool
Mirror of https://gitlab.com/philkrylov/pg_conftool. Note that this is just a *mirror* - I don't work with pull requests on github.
https://github.com/tuffnatty/pg_conftool
configuration-management freebsd postgresql
Last synced: 2 months ago
JSON representation
Mirror of https://gitlab.com/philkrylov/pg_conftool. Note that this is just a *mirror* - I don't work with pull requests on github.
- Host: GitHub
- URL: https://github.com/tuffnatty/pg_conftool
- Owner: tuffnatty
- License: postgresql
- Created: 2021-09-04T19:38:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T00:50:24.000Z (almost 5 years ago)
- Last Synced: 2025-01-17T09:47:25.741Z (over 1 year ago)
- Topics: configuration-management, freebsd, postgresql
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pg_conftool
This is a limited implementation of Debian's `pg_conftool`.
## Why
The original `pg_conftool` requires Perl and a distribution using `postgresql-common`.
This `pg_conftool` requires only POSIX shell, supports setting multiple parameters at once, and works in FreeBSD.
## Usage
```
pg_conftool [-bsvh] [-j JAIL | -R DIR] [VERSION CLUSTERNAME | PROFILE] [CONFIGFILE] COMMAND
-b Format boolean value as on or off (not for "show all").
-j JAIL The jid or name of the jail to operate within (on FreeBSD).
-s Show only the value (not for "show all").
-v Verbose output (inform if parameter is not found).
-R DIR The root directory to operate within.
-h Print help.
VERSION CLUSTERNAME is used to specify cluster in `postgresql-common` distributions.
PROFILE is used to specify cluster in FreeBSD, it must be contained in the
`postgresql_profiles` variable within rc.conf(5).
CONFIGFILE may specify an absolute pathname; cluster specification is not needed then.
show PARAMETER|all Show a parameter, or all present in CONFIGFILE.
set [PARAMETER VALUE | PARAMETER=VALUE]...
Set or update a parameter, or multiple parameters.
remove PARAMETER Remove (comment out) a parameter from CONFIGFILE.
edit Open the config file in $EDITOR [vi].
```
## Limitations
`include` and `include_dir` directives are not supported.