Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.83 KB

postgresql_config.md

File metadata and controls

45 lines (31 loc) · 1.83 KB

postgresql_config

Back to resource list

This resource manages the postgresql.conf configuration file.

Requires

  • deepsort

Uses

Actions

  • :create
  • :delete

Properties

Name Name? Type Default Description Allowed Values
config_file String
source String
version String, Integer PostgreSQL installed version override
data_directory String PostgreSQL server data directory
hba_file String PostgreSQL pg_hba.conf file location
ident_file String PostgreSQL pg_ident.conf file location
external_pid_file String PostgreSQL external PID file location
server_config Hash PostgreSQL server configuration options

Examples

Setup the PostgreSQL configuration with a specific data directory:

Note: If you have installed a specific version of PostgreSQL (different from the default version), you must specify that version in this resource too

postgresql_server_conf 'My PostgreSQL Config' do
  version '15'
  data_directory '/data/postgresql/15/main'
  notifies :reload, 'postgresql_service[postgresql]'
end