Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 434 Bytes
#
# Cookbook Name:: postgresql
# Recipe:: default
#
# pin default package preferences
apt_preference "pgdg" do
glob "*"
pin "release o=apt.postgresql.org"
pin_priority "750"
end
case node["platform"]
when "ubuntu"
include_recipe "postgresql::apt_repository"
package "postgresql-common" # install common files
when "debian"
include_recipe "postgresql::debian_backports"
include_recipe "postgresql::apt_repository"
end