Set up an instance of Mastodon for Kosmos

Refs #19

Use new application cookbook, update our cookbooks
This commit is contained in:
Greg Karékinian
2017-04-06 21:20:51 +02:00
parent a3f5c5f646
commit de11c0d691
345 changed files with 22591 additions and 3473 deletions

View File

@@ -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']