inspec/test/cookbooks/os_prepare/recipes/postgres.rb
Tim Smith 4b3095dac2 Further modernize the cookbook and remove legacy setup
Remove container setup that comes for free with the dokken containers now
Use the new openssl resource names
Remove all the encoding statements that even rubocop doesn't recommend anymore
Remove some compatibility with centos-5 and ubuntu 15.10

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 21:50:33 -08:00

12 lines
446 B
Ruby

# author: Stephan Renatus
#
# installs everyting for the postgres tests
# sous-chefs/postgresql is tested on these platforms
case node['platform']
when 'ubuntu', 'centos'
node.default['postgresql']['enable_pgdg_apt'] = true
node.default['postgresql']['config']['listen_addresses'] = 'localhost'
node.default['postgresql']['password']['postgres'] = 'md506be11be01439cb4abd537e454df34ea' # "inspec"
include_recipe 'postgresql::server'
end