Sha256: 2f13c63506920bd4ec8613a769e68fa4458c0a307078f699264a88700bbf391d

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

# This file was automatically generated and dropped off by Chef!

# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file.

<% if node['postgresql']['version'].to_f < 9.1 -%>
# TYPE  DATABASE        USER            CIDR-ADDRESS            METHOD
<% elsif node['postgresql']['version'].to_f >= 9.1 -%>
# TYPE  DATABASE        USER            ADDRESS                 METHOD
<% end -%>

###########
# Other authentication configurations taken from chef node defaults:
###########
<% node['postgresql']['pg_hba'].each do |auth| -%>

<%   if auth[:comment] %>
<%= auth[:comment] %>
<%   end %>
<%   if auth[:addr] %>
<%= auth[:type].ljust(7) %> <%= auth[:db].ljust(15) %> <%= auth[:user].ljust(15) %> <%= auth[:addr].ljust(23) %> <%= auth[:method] %>
<%   else %>
<%= auth[:type].ljust(7) %> <%= auth[:db].ljust(15) %> <%= auth[:user].ljust(15) %>                         <%= auth[:method] %>
<%   end %>
<% end %>

# "local" is for Unix domain socket connections only
<% if node['postgresql']['version'].to_f < 9.1 -%>
local   all             all                                     ident
<% elsif node['postgresql']['version'].to_f >= 9.1 -%>
local   all             all                                     peer
<% end -%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/postgresql/templates/default/pg_hba.conf.erb
from-scratch-0.6.0 cookbooks/postgresql/templates/default/pg_hba.conf.erb
from-scratch-0.5.0 cookbooks/postgresql/templates/default/pg_hba.conf.erb
from-scratch-0.3.0 cookbooks/postgresql/templates/default/pg_hba.conf.erb
from-scratch-0.2.0 cookbooks/postgresql/templates/default/pg_hba.conf.erb
from-scratch-0.1.1 cookbooks/postgresql/templates/default/pg_hba.conf.erb