Skip to content

Commit

Permalink
Merge pull request #409 from engineyard/FB-573-postgres-version-update
Browse files Browse the repository at this point in the history
[FB-573] Update PostgreSQL versions
  • Loading branch information
Dimitris authored Jul 12, 2019
2 parents e04cf20 + c2cb883 commit 4d929b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cookbooks/postgresql/attributes/version.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
case attribute.dna.engineyard.environment.db_stack_name
when "postgres9_4"
default['postgresql']['latest_version'] = '9.4.12'
default['postgresql']['latest_version'] = '9.4.22'
default['postgresql']['short_version'] = '9.4'
when "postgres9_5"
default['postgresql']['latest_version'] = '9.5.7'
default['postgresql']['latest_version'] = '9.5.17'
default['postgresql']['short_version'] = '9.5'
when "postgres9_6"
default['postgresql']['latest_version'] = '9.6.3'
default['postgresql']['latest_version'] = '9.6.13'
default['postgresql']['short_version'] = '9.6'
when "postgres10"
default['postgresql']['latest_version'] = '10.4'
default['postgresql']['latest_version'] = '10.8'
default['postgresql']['short_version'] = '10'
end
default['postgresql']['datadir'] = "/db/postgresql/#{node['postgresql']['short_version']}/data/"
Expand Down
8 changes: 4 additions & 4 deletions cookbooks/postgresql/recipes/server_install.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
postgres_version = node['postgresql']['short_version']

known_ebuild_versions = %w[
9.4.8 9.4.11 9.4.12
9.5.3 9.5.6 9.5.7
9.6.3
10.4
9.4.8 9.4.11 9.4.12 9.4.22
9.5.3 9.5.6 9.5.7 9.5.17
9.6.3 9.6.13
10.4 10.8
]

execute "dropping lock version file" do
Expand Down

0 comments on commit 4d929b6

Please sign in to comment.