]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/database.yml.erb
Fix web server logrotate for Ubuntu 16.04
[chef.git] / cookbooks / web / templates / default / database.yml.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 production:
4   adapter: postgresql
5 <% if @host -%>
6   host: <%= @host %>
7 <% end -%>
8 <% if @port -%>
9   port: <%= @port %>
10 <% end -%>
11   database: <%= @name %>
12   username: <%= @username %>
13 <% if @password -%>
14   password: <%= @password %>
15 <% end -%>
16   encoding: utf8
17
18 development:
19   adapter: postgresql
20 <% if @host -%>
21   host: <%= @host %>
22 <% end -%>
23 <% if @port -%>
24   port: <%= @port %>
25 <% end -%>
26   database: <%= @name %>
27   username: <%= @username %>
28 <% if @password -%>
29   password: <%= @password %>
30 <% end -%>
31   encoding: utf8