From a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 7 Dec 2010 02:40:21 +0000 Subject: add a require on a required package, needed to create initial database --- modules/postgresql/manifests/init.pp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'modules/postgresql') 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: -- cgit v1.2.1