Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -15,18 +15,23 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
if platform_family?('debian') && node['postgresql']['version'].to_f > 9.3
|
||||
node.default['postgresql']['enable_pgdg_apt'] = true
|
||||
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
|
||||
end
|
||||
|
||||
if node['postgresql']['enable_pgdg_apt']
|
||||
include_recipe 'postgresql::apt_pgdg_postgresql'
|
||||
end
|
||||
when 'rhel'
|
||||
if node['postgresql']['enable_pgdg_yum']
|
||||
include_recipe 'postgresql::yum_pgdg_postgresql'
|
||||
end
|
||||
end
|
||||
|
||||
if(node['postgresql']['enable_pgdg_apt']) and platform_family?('debian')
|
||||
include_recipe 'postgresql::apt_pgdg_postgresql'
|
||||
end
|
||||
|
||||
if(node['postgresql']['enable_pgdg_yum']) and platform_family?('rhel')
|
||||
include_recipe 'postgresql::yum_pgdg_postgresql'
|
||||
end
|
||||
|
||||
node['postgresql']['client']['packages'].each do |pg_pack|
|
||||
package pg_pack
|
||||
node['postgresql']['client']['packages'].each do |pkg|
|
||||
package pkg
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user