Sha256: 2b73542f4459c2d436f49b58231cf5e39b2e60666022d169b2c4cc0868a48a89

Contents?: true

Size: 635 Bytes

Versions: 6

Compression:

Stored size: 635 Bytes

Contents

if not %w(jessie squeeze wheezy sid lucid precise saucy trusty utopic).include? node['postgresql']['pgdg']['release_apt_codename']
  raise "Not supported release by PGDG apt repository"
end

include_recipe 'apt'

file "remove deprecated Pitti PPA apt repository" do
  action :delete
  path "/etc/apt/sources.list.d/pitti-postgresql-ppa"
end

apt_repository 'apt.postgresql.org' do
  uri 'http://apt.postgresql.org/pub/repos/apt'
  distribution "#{node['postgresql']['pgdg']['release_apt_codename']}-pgdg"
  components ['main', node['postgresql']['version']]
  key 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
  action :add
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb
from-scratch-0.6.0 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb
from-scratch-0.5.0 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb
from-scratch-0.3.0 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb
from-scratch-0.2.0 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb
from-scratch-0.1.1 cookbooks/postgresql/recipes/apt_pgdg_postgresql.rb