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
=== modified file 'config.yaml'
--- config.yaml 2012-04-12 15:46:33 +0000
+++ config.yaml 2013-02-11 18:05:46 +0000
@@ -1,8 +1,8 @@
1options:1options:
2 couchbase_version:2 couchbase_version:
3 default: stable3 default: community-2.0
4 type: string4 type: string
5 description: Couchbase version to install. ( stable or devel )5 description: Couchbase version to install. ("community-2.0", "community-1.8", "enterprise-2.0", or "enterprise-1.8")
6 cluster_username:6 cluster_username:
7 default: Administrator7 default: Administrator
8 type: string8 type: string
99
=== modified file 'hooks/install'
--- hooks/install 2012-04-12 15:46:33 +0000
+++ hooks/install 2013-02-11 18:05:46 +0000
@@ -26,8 +26,24 @@
26COUCHBASE_IP=`facter ipaddress`26COUCHBASE_IP=`facter ipaddress`
27COUCHBASE_UUID=`uuid`27COUCHBASE_UUID=`uuid`
28COUCHBASE_VERSION=`config-get couchbase_version`28COUCHBASE_VERSION=`config-get couchbase_version`
29COUCHBASE_URL="http://packages.couchbase.com/releases/1.8.0/couchbase-server-community_${ARCH}_1.8.0.deb"29
30[ "${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"30COUCHBASE_URL_BASE="http://packages.couchbase.com/releases/"
31case $COUCHBASE_VERSION in
32 community-2.0)
33 COUCHBASE_URL_PATH="2.0.0/couchbase-server-community_${ARCH}_2.0.0.deb"
34 ;;
35 community-1.8)
36 COUCHBASE_URL_PATH="1.8.1/couchbase-server-community_${ARCH}_1.8.1.deb"
37 ;;
38 enterprise-2.0)
39 COUCHBASE_URL_PATH="2.0.0/couchbase-server-enterprise_${ARCH}_2.0.0.deb"
40 ;;
41 enterprise-1.8)
42 COUCHBASE_URL_PATH="1.8.1/couchbase-server-enterprise_x86_64_1.8.1.deb"
43 ;;
44esac
45
46COUCHBASE_URL="${COUCHBASE_URL_BASE}${COUCHBASE_URL_PATH}"
3147
32if [ "${COUCHBASE_BUCKET}" == "auto" ]; then48if [ "${COUCHBASE_BUCKET}" == "auto" ]; then
33 COUCHBASE_BUCKET=`pwgen -N1`49 COUCHBASE_BUCKET=`pwgen -N1`

Subscribers

People subscribed via source and target branches

to all changes: