summaryrefslogtreecommitdiff
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
parent7c9462a0fab1c6e499b62caa2093dedfa9c8adc8 (diff)
moved cloudant bigcouch package repo to a seperate class
-rw-r--r--manifests/bigcouch.pp22
-rw-r--r--manifests/bigcouch/package/cloudant.pp19
2 files changed, 26 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':
diff --git a/manifests/bigcouch/package/cloudant.pp b/manifests/bigcouch/package/cloudant.pp
new file mode 100644
index 0000000..b1d0a2c
--- /dev/null
+++ b/manifests/bigcouch/package/cloudant.pp
@@ -0,0 +1,19 @@
+class couchdb::bigcouch::package::cloudant {
+
+ # cloudant only provides unauthenticated packages
+ # use this if you need bigcouch 0.4.0
+
+ 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;',
+ }
+
+}