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
This commit is contained in:
parent
7870b38db6
commit
01b38f5bb4
1 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,19 @@ define postgresql::server::extension (
|
|||
$package_name = undef,
|
||||
$package_ensure = undef,
|
||||
) {
|
||||
$user = $postgresql::server::user
|
||||
$group = $postgresql::server::group
|
||||
$psql_path = $postgresql::server::psql_path
|
||||
$port = $postgresql::server::port
|
||||
|
||||
# Set the defaults for the postgresql_psql resource
|
||||
Postgresql_psql {
|
||||
psql_user => $user,
|
||||
psql_group => $group,
|
||||
psql_path => $psql_path,
|
||||
port => $port,
|
||||
}
|
||||
|
||||
case $ensure {
|
||||
'present': {
|
||||
$command = "CREATE EXTENSION ${name}"
|
||||
|
|
Loading…
Reference in a new issue