summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kaenzig <christian.kaenzig@camptocamp.com>2012-10-30 04:19:19 -0700
committerChristian Kaenzig <christian.kaenzig@camptocamp.com>2012-10-30 04:19:19 -0700
commit8e8d084b8eb8d74a47d2a29eaf15f6c5ac2aa0ed (patch)
treed2c43ac3b0e4246daeac829d6b30d0747122b3b5
parentec4102284592b74376f36660bf0f888fb5efe4da (diff)
parentf810751dd89edce4af4d9388a50ad4e17f9a7e14 (diff)
Merge pull request #6 from ckaenzig/backup-rh6
couchdb::backup on redhat: install python-couchdb from egg.
-rw-r--r--manifests/backup.pp19
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',
+ }
+ }
}
}