Skip to content

Commit 75e7ef9

Browse files
author
jtimberman
committed
update to couchdb 1.0.2 and minor doc improvements
1 parent a35c44c commit 75e7ef9

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

couchdb/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
DESCRIPTION
22
===========
33

4+
Installs and configures CouchDB. Optionally can install CouchDB from sources.
5+
46
REQUIREMENTS
57
============
68

79
Requires a platform that can install Erlang from distribution packages.
810

9-
Platform
10-
--------
11+
## Platform
1112

12-
Works on Debian 5+, Ubuntu 8.10+, OpenBSD and FreeBSD.
13+
Tested on Debian 5+, Ubuntu 8.10+, OpenBSD and FreeBSD.
1314

1415
Also works on Red Hat, CentOS and Fedora, requires the EPEL yum repository.
1516

16-
Cookbooks
17-
---------
17+
## Cookbooks
1818

19-
Requires the erlang cookbook so erlang can be installed.
19+
* erlang
2020

2121
ATTRIBUTES
2222
==========
2323

2424
Cookbook attributes are named under the `couch_db` keyspace. The attributes specified in the cookbook are used in the `couchdb::source` recipe only.
2525

26-
* `node[:couch_db][:src_checksum]` - sha256sum of the default version of couchdb to download
27-
* `node[:couch_db][:src_version]` - default version of couchdb to download, used in the full URL to download.
28-
* `node[:couch_db][:src_mirror]` - full URL to download.
26+
* `node['couch_db']['src_checksum']` - sha256sum of the default version of couchdb to download
27+
* `node['couch_db']['src_version']` - default version of couchdb to download, used in the full URL to download.
28+
* `node['couch_db']['src_mirror']` - full URL to download.
2929

3030
RECIPES
3131
=======
@@ -45,7 +45,7 @@ LICENSE AND AUTHOR
4545

4646
Author:: Joshua Timberman (<[email protected]>)
4747

48-
Copyright 2009, Opscode, Inc.
48+
Copyright 2009-2011, Opscode, Inc.
4949

5050
Licensed under the Apache License, Version 2.0 (the "License");
5151
you may not use this file except in compliance with the License.

couchdb/attributes/default.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919

20-
set[:couch_db][:src_checksum] = "b74a5bfe13e3457798107509cb533d0e7df276adad526ccd5a381c1271108b1f"
21-
set[:couch_db][:src_version] = "1.0.1"
22-
set[:couch_db][:src_mirror] = "http://archive.apache.org/dist/couchdb/#{couch_db.src_version}/apache-couchdb-#{couch_db.src_version}.tar.gz"
20+
set['couch_db']['src_checksum'] = "6ef82a7ba0f132d55af7cc78b30658d5b3a4f7be3f449308c8d7fa2ad473677c"
21+
set['couch_db']['src_version'] = "1.0.2"
22+
set['couch_db']['src_mirror'] = "http://archive.apache.org/dist/couchdb/#{node['couch_db']['src_version']}/apache-couchdb-#{node['couch_db']['src_version']}.tar.gz"

couchdb/recipes/source.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919

20-
if node[:platform] == "ubuntu" && node[:platform_version].to_f == 8.04
21-
log "Ubuntu 8.04 does not supply sufficient development libraries via APT to install CouchDB #{node[:couch_db][:src_version]} from source."
20+
if node['platform'] == "ubuntu" && node['platform_version'].to_f == 8.04
21+
log "Ubuntu 8.04 does not supply sufficient development libraries via APT to install CouchDB #{node['couch_db']['src_version']} from source."
2222
return
2323
end
2424

2525
include_recipe "erlang"
2626

27-
couchdb_tar_gz = File.join(Chef::Config[:file_cache_path], "/", "apache-couchdb-#{node[:couch_db][:src_version]}.tar.gz")
27+
couchdb_tar_gz = File.join(Chef::Config[:file_cache_path], "/", "apache-couchdb-#{node['couch_db']['src_version']}.tar.gz")
2828
compile_flags = String.new
2929
dev_pkgs = Array.new
3030

31-
case node[:platform]
31+
case node['platform']
3232
when "debian", "ubuntu"
3333

3434
dev_pkgs << "libicu-dev"
@@ -46,21 +46,21 @@
4646
package pkg
4747
end
4848

49-
if node[:platform_version].to_f >= 10.04
49+
if node['platform_version'].to_f >= 10.04
5050
compile_flags = "--with-js-lib=/usr/lib/xulrunner-devel-1.9.2.8/lib --with-js-include=/usr/lib/xulrunner-devel-1.9.2.8/include"
5151
end
5252
end
5353

5454
remote_file couchdb_tar_gz do
55-
checksum node[:couch_db][:src_checksum]
56-
source node[:couch_db][:src_mirror]
55+
checksum node['couch_db']['src_checksum']
56+
source node['couch_db']['src_mirror']
5757
end
5858

59-
bash "install couchdb #{node[:couch_db][:src_version]}" do
59+
bash "install couchdb #{node['couch_db']['src_version']}" do
6060
cwd Chef::Config[:file_cache_path]
6161
code <<-EOH
6262
tar -zxf #{couchdb_tar_gz}
63-
cd apache-couchdb-#{node[:couch_db][:src_version]} && ./configure #{compile_flags} && make && make install
63+
cd apache-couchdb-#{node['couch_db']['src_version']} && ./configure #{compile_flags} && make && make install
6464
EOH
6565
not_if { ::FileTest.exists?("/usr/local/bin/couchdb") }
6666
end

0 commit comments

Comments
 (0)