Add initial kosmos-postgresql cookbook
This is to install PostgreSQL all in one place instead of for each service that needs it (Mastodon, ejabberd, ...)
This commit is contained in:
16
site-cookbooks/kosmos-postgresql/recipes/default.rb
Normal file
16
site-cookbooks/kosmos-postgresql/recipes/default.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# Cookbook:: kosmos-postgresql
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2019, Kosmos, All Rights Reserved.
|
||||
|
||||
node.override['postgresql']['enable_pgdg_apt'] = false
|
||||
# See https://github.com/sous-chefs/postgresql/issues/480
|
||||
node.override['postgresql']['pg_gem']['version'] = '0.21.0'
|
||||
include_recipe "postgresql::server"
|
||||
include_recipe "postgresql::ruby"
|
||||
unless node.chef_environment == "development"
|
||||
node.override['postgresql']['config_pgtune']['db_type'] = "web"
|
||||
include_recipe "postgresql::config_pgtune"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user