diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:21 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:21 +0000 |
commit | a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22 (patch) | |
tree | 9632a3660eca6407415b81b4b408003f4f463226 /modules/postgresql/manifests/init.pp | |
parent | 1ded1f24a5219366b8fbe9bb46358e19c8b55b2e (diff) | |
download | puppet-a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22.tar puppet-a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22.tar.gz puppet-a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22.tar.bz2 puppet-a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22.tar.xz puppet-a41be4137ccc451a9bf7cd3f0a0f8fc13f6f9d22.zip |
add a require on a required package, needed to create initial database
Diffstat (limited to 'modules/postgresql/manifests/init.pp')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 14 |
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: |