Sha256: e151216f6c44f1310d58a40bd0b5f1423c2364a426e377418f1d8e460af83899

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

#
# Cookbook Name:: postgresql
# Recipe:: client
#
# Author:: Joshua Timberman (<joshua@opscode.com>)
# Author:: Lamont Granquist (<lamont@opscode.com>)
# Copyright 2009-2011 Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

pg_packages = case node['platform']
when "ubuntu","debian"
  %w{postgresql-client libpq-dev make}
when "fedora","suse","amazon"
  %w{postgresql-devel}
when "redhat","centos","scientific"
  case
  when node['platform_version'].to_f >= 6.0
    %w{postgresql-devel}
  else
    [ "postgresql#{node['postgresql']['version'].split('.').join}-devel" ]
  end
end

pg_packages.each do |pg_pack|
  package pg_pack
end

gem_package "pg"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
elzar-0.2.0 chef/site-cookbooks/postgresql/recipes/client.rb
elzar-0.1.2 chef/site-cookbooks/postgresql/recipes/client.rb
elzar-0.1.1 chef/site-cookbooks/postgresql/recipes/client.rb
elzar-0.1.0 chef/site-cookbooks/postgresql/recipes/client.rb
elzar-0.0.2 chef/site-cookbooks/postgresql/recipes/client.rb
elzar-0.0.1 site-cookbooks/postgresql/recipes/client.rb