diff options
author | varac <varacanero@zeromail.org> | 2012-10-31 13:34:29 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-10-31 13:34:29 +0100 |
commit | 95beaab25a31a6b295d9c8ce809cc254a109e484 (patch) | |
tree | 5c2238ed499299b317b6d164713889df49d49ff6 /manifests | |
parent | b4020afadc24aa6c1da3a1b8b0b2aa7936353d1d (diff) | |
parent | 8e8d084b8eb8d74a47d2a29eaf15f6c5ac2aa0ed (diff) |
Merge branch 'master' of git://github.com/camptocamp/puppet-couchdb
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/backup.pp | 19 |
1 files changed, 15 insertions, 4 deletions
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', + } + } } } |