From f810751dd89edce4af4d9388a50ad4e17f9a7e14 Mon Sep 17 00:00:00 2001 From: Christian Kaenzig Date: Fri, 26 Oct 2012 14:45:45 +0200 Subject: couchdb::backup on redhat: install python-couchdb from egg. There's no package in any repository suitable for rhel 6. --- manifests/backup.pp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'manifests/backup.pp') diff --git a/manifests/backup.pp b/manifests/backup.pp index 14acff9..a880718 100644 --- a/manifests/backup.pp +++ b/manifests/backup.pp @@ -29,10 +29,21 @@ class couchdb::backup { require => File["/usr/local/sbin/couchdb-backup.py"], } - # note: python-couchdb >= 0.8 required, which is found in debian wheezy. - package { ["python-couchdb", "python-simplejson"]: - ensure => present, - before => File["/usr/local/sbin/couchdb-backup.py"], + + case $operatingsystem { + /Debian|Ubunu/: { + # note: python-couchdb >= 0.8 required, which is found in debian wheezy. + package { ["python-couchdb", "python-simplejson"]: + ensure => present, + before => File["/usr/local/sbin/couchdb-backup.py"], + } + } + /RedHat|Centos/: { + exec {'install python-couchdb using easy_install': + command => 'easy_install http://pypi.python.org/packages/2.6/C/CouchDB/CouchDB-0.8-py2.6.egg', + creates => '/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg', + } + } } } -- cgit v1.2.3