]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/database.yml.erb
Use volume for nested podman container storage
[chef.git] / cookbooks / web / templates / default / database.yml.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 production:
4   primary:
5     adapter: postgresql
6 <% if @host -%>
7     host: <%= @host %>
8 <% end -%>
9 <% if @port -%>
10     port: <%= @port %>
11 <% end -%>
12     database: <%= @name %>
13     username: <%= @username %>
14 <% if @password -%>
15     password: <%= @password %>
16 <% end -%>
17     encoding: utf8
18     variables:
19       statement_timeout: 300s
20 <% if @gps_name -%>
21   gps:
22     adapter: postgresql
23 <% if @gps_host -%>
24     host: <%= @gps_host %>
25 <% end -%>
26 <% if @gps_port -%>
27     port: <%= @gps_port %>
28 <% end -%>
29     database: <%= @gps_name %>
30     username: <%= @gps_username %>
31 <% if @gps_password -%>
32     password: <%= @gps_password %>
33 <% end -%>
34     encoding: utf8
35     connect_timeout: 3
36     variables:
37       statement_timeout: 300s
38     migrations_paths: db/gps_migrate
39 <% end -%>
40
41 development:
42   primary:
43     adapter: postgresql
44 <% if @host -%>
45     host: <%= @host %>
46 <% end -%>
47 <% if @port -%>
48     port: <%= @port %>
49 <% end -%>
50     database: <%= @name %>
51     username: <%= @username %>
52 <% if @password -%>
53     password: <%= @password %>
54 <% end -%>
55     encoding: utf8
56     variables:
57       statement_timeout: 300s
58 <% if @gps_name -%>
59   gps:
60     adapter: postgresql
61 <% if @gps_host -%>
62     host: <%= @gps_host %>
63 <% end -%>
64 <% if @gps_port -%>
65     port: <%= @gps_port %>
66 <% end -%>
67     database: <%= @gps_name %>
68     username: <%= @gps_username %>
69 <% if @gps_password -%>
70     password: <%= @gps_password %>
71 <% end -%>
72     encoding: utf8
73     connect_timeout: 3
74     variables:
75       statement_timeout: 300s
76     migrations_paths: db/gps_migrate
77 <% end -%>