Merge lp:~et1337/charms/precise/couchbase/update-2.0 into lp:charms/couchbase

Proposed by et1337
Status: Merged
Merged at revision: 9
Proposed branch: lp:~et1337/charms/precise/couchbase/update-2.0
Merge into: lp:charms/couchbase
Diff against target: 45 lines (+20/-4)
2 files modified
config.yaml (+2/-2)
hooks/install (+18/-2)
To merge this branch: bzr merge lp:~et1337/charms/precise/couchbase/update-2.0
Reviewer Review Type Date Requested Status
Juan L. Negron (community) Approve
Review via email: mp+147733@code.launchpad.net

Commit message

Update for Couchbase 2.0 stable

Description of the change

Updates the charm to point to Couchbase 2.0 stable rather than the beta. Also allows users to choose any permutation of 1.8/2.0 and enterprise/community.

To post a comment you must log in.
Revision history for this message
Juan L. Negron (negronjl) wrote :

Reviewing this now.

-Juan

Revision history for this message
Juan L. Negron (negronjl) wrote :

Looks good to me .... approving.

-Juan

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2012-04-12 15:46:33 +0000
3+++ config.yaml 2013-02-11 18:05:46 +0000
4@@ -1,8 +1,8 @@
5 options:
6 couchbase_version:
7- default: stable
8+ default: community-2.0
9 type: string
10- description: Couchbase version to install. ( stable or devel )
11+ description: Couchbase version to install. ("community-2.0", "community-1.8", "enterprise-2.0", or "enterprise-1.8")
12 cluster_username:
13 default: Administrator
14 type: string
15
16=== modified file 'hooks/install'
17--- hooks/install 2012-04-12 15:46:33 +0000
18+++ hooks/install 2013-02-11 18:05:46 +0000
19@@ -26,8 +26,24 @@
20 COUCHBASE_IP=`facter ipaddress`
21 COUCHBASE_UUID=`uuid`
22 COUCHBASE_VERSION=`config-get couchbase_version`
23-COUCHBASE_URL="http://packages.couchbase.com/releases/1.8.0/couchbase-server-community_${ARCH}_1.8.0.deb"
24-[ "${COUCHBASE_VERSION}" == "devel" ] && COUCHBASE_URL="http://packages.couchbase.com/releases/2.0.0-developer-preview-4/couchbase-server-community_${ARCH}_2.0.0-dev-preview-4.deb"
25+
26+COUCHBASE_URL_BASE="http://packages.couchbase.com/releases/"
27+case $COUCHBASE_VERSION in
28+ community-2.0)
29+ COUCHBASE_URL_PATH="2.0.0/couchbase-server-community_${ARCH}_2.0.0.deb"
30+ ;;
31+ community-1.8)
32+ COUCHBASE_URL_PATH="1.8.1/couchbase-server-community_${ARCH}_1.8.1.deb"
33+ ;;
34+ enterprise-2.0)
35+ COUCHBASE_URL_PATH="2.0.0/couchbase-server-enterprise_${ARCH}_2.0.0.deb"
36+ ;;
37+ enterprise-1.8)
38+ COUCHBASE_URL_PATH="1.8.1/couchbase-server-enterprise_x86_64_1.8.1.deb"
39+ ;;
40+esac
41+
42+COUCHBASE_URL="${COUCHBASE_URL_BASE}${COUCHBASE_URL_PATH}"
43
44 if [ "${COUCHBASE_BUCKET}" == "auto" ]; then
45 COUCHBASE_BUCKET=`pwgen -N1`

Subscribers

People subscribed via source and target branches

to all changes: