File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 32
32
}
33
33
}
34
34
35
+ if ( $database != ' postgres' ) {
36
+ # The database postgres cannot managed by this module, so it is exempt from this dependency
37
+ Postgresql_psql {
38
+ require => Postgresql::Server::Database[$database ],
39
+ }
40
+ }
35
41
36
42
postgresql_psql {"Add ${extension} extension to ${database}" :
37
43
45
51
unless => " SELECT t.count FROM (SELECT count(extname) FROM pg_extension WHERE extname = '${extension} ') as t WHERE t.count ${unless_comp} 1" ,
46
52
}
47
53
48
- if ($database != undef and defined (Postgresql::Server::Database[$database ])) {
49
- Postgresql::Server::Database[$database ]->Postgresql_psql[" Add ${extension} extension to ${database} " ]
50
- }
51
-
52
54
if $package_name {
53
55
$_package_ensure = $package_ensure ? {
54
56
undef => $ensure ,
79
81
command => $alter_extension_sql ,
80
82
unless => $update_unless ,
81
83
}
82
- if ($database != undef and defined (Postgresql::Server::Database[$database ])) {
83
- Postgresql::Server::Database[$database ]->Postgresql_psql[" ${database} : ${alter_extension_sql} " ]
84
- }
85
84
}
86
85
}
You can’t perform that action at this time.
0 commit comments