Permalink
Browse files

versioning for postgresql cookbook PG8.4 default

  • Loading branch information...
1 parent d8c6b2e commit 6952a4945b877c2c71fd5f92c8c433d72e8d1df7 @antono committed Feb 7, 2010
Showing with 5 additions and 3 deletions.
  1. +4 −2 postgresql/attributes/postgresql.rb
  2. +1 −1 postgresql/metadata.json
@@ -17,11 +17,13 @@
# limitations under the License.
#
+set_unless.version('8.4')
+
case platform
when "redhat","centos","fedora","suse"
set[:postgresql][:dir] = "/var/lib/pgsql/data"
when "debian","ubuntu"
- set[:postgresql][:dir] = "/etc/postgresql/8.3/main"
+ set[:postgresql][:dir] = "/etc/postgresql/#{version}/main"
else
- set[:postgresql][:dir] = "/etc/postgresql/8.3/main"
+ set[:postgresql][:dir] = "/etc/postgresql/#{version}/main"
end
View
@@ -34,7 +34,7 @@
},
"attributes": {
"postgresql\/dir": {
- "default": "\/etc\/postgresql\/8.3\/main",
+ "default": "\/etc\/postgresql\/8.4\/main",
"type": "string",
"multiple_values": false,
"description": "Location of the PostgreSQL databases",

0 comments on commit 6952a49

Please sign in to comment.