aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index fb3ea06b..5e758dbd 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -1,10 +1,20 @@
class postgresql {
$pgsql_data = "/var/lib/pgsql/data/"
+ $pg_version = '9.0'
- package { 'postgresql9.0-server':
+ # missing requires is corrected in cooker,
+ # should be removed
+ # once the fix is in a stable release
+ package { "postgresql$pg_version-plpgsql":
+ alias => "postgresql-plpgsql",
+ ensure => installed,
+ }
+
+ package { "postgresql$pg_version-server":
alias => "postgresql-server",
- ensure => installed
+ ensure => installed,
+ require => Package['postgresql-plpgsql'],
}
service { postgresql: