summaryrefslogtreecommitdiff
path: root/manifests/bigcouch
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-14 15:35:22 +0100
committervarac <varacanero@zeromail.org>2013-03-14 15:35:22 +0100
commit77b80561e187c93f7c48f5ac4136e800702b0cec (patch)
tree4b5090bb370fd2355c46e01d814a8642cf9fd960 /manifests/bigcouch
parentf0e4edd5861107014ebb53c1ee4897f8e0bde8d8 (diff)
cloudant now have signed packages
Diffstat (limited to 'manifests/bigcouch')
-rw-r--r--manifests/bigcouch/package/cloudant.pp27
1 files changed, 17 insertions, 10 deletions
diff --git a/manifests/bigcouch/package/cloudant.pp b/manifests/bigcouch/package/cloudant.pp
index b1d0a2c..4c5c3bb 100644
--- a/manifests/bigcouch/package/cloudant.pp
+++ b/manifests/bigcouch/package/cloudant.pp
@@ -1,19 +1,26 @@
class couchdb::bigcouch::package::cloudant {
- # cloudant only provides unauthenticated packages
- # use this if you need bigcouch 0.4.0
+
+ # cloudants signing key can be fetched from
+ # http://packages.cloudant.com/KEYS, please use the apt module to
+ # distribute it on your servers
+ # It's verified fingerprint is:
+ # BAF9 B315 D438 5FB9 B5DE 334B 59E0 1FBD 15BE 8E26
apt::sources_list {'bigcouch-cloudant.list':
- content => "deb http://packages.cloudant.com/debian $::lsbdistcodename main"
+ content => 'deb http://packages.cloudant.com/debian squeeze main'
}
- # currently, there's no other way with puppet to install unauthenticated
- # pacakges: http://projects.puppetlabs.com/issues/556
- # so we need to globally allow apt to install unauthenticated
- # packages.
-
- apt::apt_conf { 'allow_unauthenticated':
- content => 'APT::Get::AllowUnauthenticated yes;',
+ # right now, cloudant only provides authenticated ibigcouch 0.4.2 packages
+ # for squeeze, therefore we need to include squeeze repo for depending
+ # packages
+ if $::lsbdistcodename == 'wheezy' {
+ apt::sources_list {'squeeze.list':
+ content => 'deb http://http.debian.net/debian squeeze main
+deb http://security.debian.org/ squeeze/updates main
+',
+ before => Exec[refresh_apt]
+ }
}
}