Set up an instance of Mastodon for Kosmos
Refs #19 Use new application cookbook, update our cookbooks
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
#
|
||||
# Cookbook Name:: postgresql
|
||||
# Cookbook:: postgresql
|
||||
# Recipe:: client
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -15,23 +16,19 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
include_recipe "postgresql::ca_certificates"
|
||||
|
||||
case node['platform_family']
|
||||
when 'debian'
|
||||
if node['postgresql']['version'].to_f > 9.3
|
||||
node.set['postgresql']['enable_pgdg_apt'] = true
|
||||
node.normal['postgresql']['enable_pgdg_apt'] = true
|
||||
end
|
||||
|
||||
if node['postgresql']['enable_pgdg_apt']
|
||||
include_recipe 'postgresql::apt_pgdg_postgresql'
|
||||
end
|
||||
when 'rhel'
|
||||
when 'rhel', 'fedora'
|
||||
if node['postgresql']['enable_pgdg_yum']
|
||||
include_recipe 'postgresql::yum_pgdg_postgresql'
|
||||
end
|
||||
end
|
||||
|
||||
node['postgresql']['client']['packages'].each do |pkg|
|
||||
package pkg
|
||||
end
|
||||
package node['postgresql']['client']['packages']
|
||||
|
||||
Reference in New Issue
Block a user