]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/database.yml.erb
Add a load more cookbooks to the public repository
[chef.git] / cookbooks / web / templates / default / database.yml.erb
diff --git a/cookbooks/web/templates/default/database.yml.erb b/cookbooks/web/templates/default/database.yml.erb
new file mode 100644 (file)
index 0000000..ab3c9c6
--- /dev/null
@@ -0,0 +1,31 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+production:
+  adapter: postgresql
+<% if @host -%>
+  host: <%= @host %>
+<% end -%>
+<% if @port -%>
+  port: <%= @port %>
+<% end -%>
+  database: <%= @name %>
+  username: <%= @username %>
+<% if @password -%>
+  password: <%= @password %>
+<% end -%>
+  encoding: utf8
+
+development:
+  adapter: postgresql
+<% if @host -%>
+  host: <%= @host %>
+<% end -%>
+<% if @port -%>
+  port: <%= @port %>
+<% end -%>
+  database: <%= @name %>
+  username: <%= @username %>
+<% if @password -%>
+  password: <%= @password %>
+<% end -%>
+  encoding: utf8