Skip to content

Commit a75c861

Browse files
Merge pull request puppetlabs#1156 from oxilion/master
add extra parameter "extra_systemd_config"
2 parents 2af6e7b + 90d871d commit a75c861

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
$package_ensure = 'present'
2626
$module_workdir = pick($module_workdir,'/tmp')
2727
$password_encryption = undef
28+
$extra_systemd_config = ''
2829
$manage_datadir = true
2930
$manage_logdir = true
3031
$manage_xlogdir = true

manifests/server.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#
7676
# @param version Sets PostgreSQL version
7777
#
78+
# @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
7879
#
7980
class postgresql::server (
8081
$postgres_password = undef,
@@ -138,6 +139,7 @@
138139
$manage_logdir = $postgresql::params::manage_logdir,
139140
$manage_xlogdir = $postgresql::params::manage_xlogdir,
140141
$password_encryption = $postgresql::params::password_encryption,
142+
$extra_systemd_config = $postgresql::params::extra_systemd_config,
141143

142144
Hash[String, Hash] $roles = {},
143145
Hash[String, Any] $config_entries = {},

manifests/server/config.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
$log_line_prefix = $postgresql::server::log_line_prefix
2424
$timezone = $postgresql::server::timezone
2525
$password_encryption = $postgresql::server::password_encryption
26+
$extra_systemd_config = $postgresql::server::extra_systemd_config
2627

2728
if ($manage_pg_hba_conf == true) {
2829
# Prepare the main pg_hba file

templates/systemd-override.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Environment=DATA_DIR=<%= @datadir %>
1212
<%- else -%>
1313
Environment=PGDATA=<%= @datadir %>
1414
<%- end -%>
15+
<%= @extra_systemd_config %>

0 commit comments

Comments
 (0)