crowbar/crowbar-openstack

View on GitHub
chef/cookbooks/postgresql/templates/default/postgresql.conf.erb

Summary

Maintainability
Test Coverage
# PostgreSQL configuration file
# This file was automatically generated and dropped off by chef!
# Please refer to the PostgreSQL documentation for details on
# configuration settings.

<% node['postgresql']['config'].sort.each do |key, value| %>
<% next if value.nil? -%>
<%= key %> = <%=
  case value
  when String
    "'#{value}'"
  when TrueClass
    'on'
  when FalseClass
    'off'
  else
    value
  end
%>
<% end %>