Skip to content

Add extra parameter "extra_systemd_config" #1156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
$package_ensure = 'present'
$module_workdir = pick($module_workdir,'/tmp')
$password_encryption = undef
$extra_systemd_config = ''
$manage_datadir = true
$manage_logdir = true
$manage_xlogdir = true
Expand Down
2 changes: 2 additions & 0 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#
# @param version Sets PostgreSQL version
#
# @param extra_systemd_config Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string
#
class postgresql::server (
$postgres_password = undef,
Expand Down Expand Up @@ -138,6 +139,7 @@
$manage_logdir = $postgresql::params::manage_logdir,
$manage_xlogdir = $postgresql::params::manage_xlogdir,
$password_encryption = $postgresql::params::password_encryption,
$extra_systemd_config = $postgresql::params::extra_systemd_config,

Hash[String, Hash] $roles = {},
Hash[String, Any] $config_entries = {},
Expand Down
1 change: 1 addition & 0 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
$log_line_prefix = $postgresql::server::log_line_prefix
$timezone = $postgresql::server::timezone
$password_encryption = $postgresql::server::password_encryption
$extra_systemd_config = $postgresql::server::extra_systemd_config

if ($manage_pg_hba_conf == true) {
# Prepare the main pg_hba file
Expand Down
1 change: 1 addition & 0 deletions templates/systemd-override.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Environment=DATA_DIR=<%= @datadir %>
<%- else -%>
Environment=PGDATA=<%= @datadir %>
<%- end -%>
<%= @extra_systemd_config %>