We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c3c397 + 53f23f1 commit 6b70c48Copy full SHA for 6b70c48
manifests/database/postgresql.pp
@@ -59,8 +59,12 @@
59
# Only install pg_trgm extension, if database it is actually managed by the module
60
if $manage_database {
61
62
- # get the pg contrib to use pg_trgm extension
63
- class { '::postgresql::server::contrib': }
+ # from postgresql version 10 onwards, this extension is no longer inside
+ # the contrib package, but is being bundled with the postgresql package itself
64
+ if versioncmp($postgres_version, '10') < 0 {
65
+ # get the pg contrib to use pg_trgm extension
66
+ include postgresql::server::contrib
67
+ }
68
69
postgresql::server::extension { 'pg_trgm':
70
database => $database_name,
0 commit comments