This is to install PostgreSQL all in one place instead of for each service that needs it (Mastodon, ejabberd, ...)
		
			
				
	
	
		
			17 lines
		
	
	
		
			509 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			509 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| #
 | |
| # 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
 | |
| 
 |