summaryrefslogtreecommitdiff
path: root/manifests/bigcouch.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-13 10:33:33 +0100
committervarac <varacanero@zeromail.org>2013-03-13 10:33:33 +0100
commitf6f1af547d4be89cc9b3ac03eb9ab23ba41ee7a7 (patch)
treef861e4e309264df4a812885dd59be7abd5b53b34 /manifests/bigcouch.pp
parent7c9462a0fab1c6e499b62caa2093dedfa9c8adc8 (diff)
moved cloudant bigcouch package repo to a seperate class
Diffstat (limited to 'manifests/bigcouch.pp')
-rw-r--r--manifests/bigcouch.pp22
1 files changed, 7 insertions, 15 deletions
diff --git a/manifests/bigcouch.pp b/manifests/bigcouch.pp
index 00d9da9..4f22f8a 100644
--- a/manifests/bigcouch.pp
+++ b/manifests/bigcouch.pp
@@ -1,28 +1,20 @@
class couchdb::bigcouch inherits couchdb::base {
- apt::sources_list {'bigcouch-cloudant.list':
- content => "deb http://packages.cloudant.com/debian $::lsbdistcodename 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;',
- }
-
file {'/etc/couchdb':
ensure => link,
target => '/opt/bigcouch/etc',
require => Package['couchdb']
}
+ # there's no bigcouch in the official debian repo, you need
+ # to setup a repository for that. You can use class
+ # couchdb::bigcouch::package::cloudant for unauthenticated 0.4.0 packages,
+ # or site_apt::leap_repo from the leap_platfrom repository
+ # for signed 0.4.2 packages
+
Package ['couchdb'] {
name => 'bigcouch',
- require => [ Apt::Sources_list ['bigcouch-cloudant.list'],
- Apt::Apt_conf ['allow_unauthenticated'], Exec[refresh_apt] ]
+ require => Exec[refresh_apt]
}
file { '/opt/bigcouch/etc/vm.args':