Skip to content

Commit 01b38f5

Browse files
committed
postgresql::server::extension needs to have defaults for postgresql_psql
Using same pattern as with postgresql::server::database. observed when installing the pg_trgm using pgsql 9.4
1 parent 7870b38 commit 01b38f5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

manifests/server/extension.pp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
$package_name = undef,
66
$package_ensure = undef,
77
) {
8+
$user = $postgresql::server::user
9+
$group = $postgresql::server::group
10+
$psql_path = $postgresql::server::psql_path
11+
$port = $postgresql::server::port
12+
13+
# Set the defaults for the postgresql_psql resource
14+
Postgresql_psql {
15+
psql_user => $user,
16+
psql_group => $group,
17+
psql_path => $psql_path,
18+
port => $port,
19+
}
20+
821
case $ensure {
922
'present': {
1023
$command = "CREATE EXTENSION ${name}"

0 commit comments

Comments
 (0)