Permalink
Browse files

updated postgres

  • Loading branch information...
1 parent e4fd69e commit f984c10e5b201063c83bf6ac2798b0e2e1005937 @revans committed Feb 16, 2011
Showing with 16 additions and 14 deletions.
  1. +16 −14 postgresql/attributes/default.rb
@@ -39,30 +39,32 @@
when "fedora"
- if platform_version.to_f <= 12
- default[:postgresql][:version] = "8.3"
- else
- default[:postgresql][:version] = "8.4"
- end
-
+ # if platform_version.to_f <= 12
+ # default[:postgresql][:version] = "8.3"
+ # else
+ # default[:postgresql][:version] = "8.4"
+ # end
+
+ default[:postgresql][:version] = "8.3"
set[:postgresql][:dir] = "/var/lib/pgsql/data"
when "redhat","centos"
- default[:postgresql][:version] = "8.4"
+ default[:postgresql][:version] = "8.3" # TODO: 8.4
set[:postgresql][:dir] = "/var/lib/pgsql/data"
when "suse"
- if platform_version.to_f <= 11.1
- default[:postgresql][:version] = "8.3"
- else
- default[:postgresql][:version] = "8.4"
- end
-
+ # if platform_version.to_f <= 11.1
+ # default[:postgresql][:version] = "8.3"
+ # else
+ # default[:postgresql][:version] = "8.4"
+ # end
+ default[:postgresql][:version] = "8.3"
set[:postgresql][:dir] = "/var/lib/pgsql/data"
else
- default[:postgresql][:version] = "8.4"
+ # default[:postgresql][:version] = "8.4"
+ default[:postgresql][:version] = "8.3"
set[:postgresql][:dir] = "/etc/postgresql/#{node[:postgresql][:version]}/main"
end

0 comments on commit f984c10

Please sign in to comment.