Skip to content

Commit d568596

Browse files
authored
Merge pull request puppetlabs#2 from MaxFedotov/extensions_port_fix
fix port not forwarded to extension class
2 parents 8413da5 + 867076d commit d568596

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/server/extension.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Optional[String[1]] $schema = undef,
66
Optional[String[1]] $version = undef,
77
String[1] $ensure = 'present',
8+
$port = $postgresql::server::port,
89
$package_name = undef,
910
$package_ensure = undef,
1011
$connect_settings = $postgresql::server::default_connect_settings,
@@ -46,7 +47,7 @@
4647
psql_group => $group,
4748
psql_path => $psql_path,
4849
connect_settings => $connect_settings,
49-
50+
port => $port,
5051
db => $database,
5152
command => $command,
5253
unless => "SELECT 1 WHERE ${unless_mod}EXISTS (SELECT 1 FROM pg_extension WHERE extname = '${extension}')",
@@ -72,6 +73,7 @@
7273
psql_group => $group,
7374
psql_path => $psql_path,
7475
connect_settings => $connect_settings,
76+
port => $port,
7577
db => $database,
7678
require => Postgresql_psql["${database}: ${command}"],
7779
}
@@ -106,6 +108,7 @@
106108
psql_group => $group,
107109
psql_path => $psql_path,
108110
connect_settings => $connect_settings,
111+
port => $port,
109112
command => $alter_extension_sql,
110113
unless => $update_unless,
111114
}

0 commit comments

Comments
 (0)