From 62bbb7ec3b0c44e1ef209ca6931c12c118e16cf0 Mon Sep 17 00:00:00 2001 From: Mathieu Bornoz Date: Fri, 25 Feb 2011 11:52:05 +0100 Subject: couchdb: this module works under Redhat now --- manifests/classes/couchdb-base.pp | 2 +- manifests/classes/couchdb-debian.pp | 8 +++++++- manifests/classes/couchdb-redhat.pp | 1 + manifests/init.pp | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 manifests/classes/couchdb-redhat.pp (limited to 'manifests') diff --git a/manifests/classes/couchdb-base.pp b/manifests/classes/couchdb-base.pp index 9713f9b..e79c323 100644 --- a/manifests/classes/couchdb-base.pp +++ b/manifests/classes/couchdb-base.pp @@ -1,6 +1,6 @@ class couchdb::base { - package {["couchdb","libjs-jquery"]: + package {"couchdb": ensure => present, } diff --git a/manifests/classes/couchdb-debian.pp b/manifests/classes/couchdb-debian.pp index 1b5090d..053d17a 100644 --- a/manifests/classes/couchdb-debian.pp +++ b/manifests/classes/couchdb-debian.pp @@ -1 +1,7 @@ -class couchdb::debian inherits couchdb::base {} +class couchdb::debian inherits couchdb::base { + + package {"libjs-jquery": + ensure => present, + } + +} diff --git a/manifests/classes/couchdb-redhat.pp b/manifests/classes/couchdb-redhat.pp new file mode 100644 index 0000000..defa0a9 --- /dev/null +++ b/manifests/classes/couchdb-redhat.pp @@ -0,0 +1 @@ +class couchdb::redhat inherits couchdb::base {} diff --git a/manifests/init.pp b/manifests/init.pp index 5100da0..3c9e0fc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,6 +7,7 @@ class couchdb { lenny : { include couchdb::debian } default: { fail "couchdb not available for ${operatingsystem}/${lsbdistcodename}"} } - } + } + RedHat: { include couchdb::redhat } } } -- cgit v1.2.3