Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pg_hba template

  • Loading branch information...
commit eebd20f54fa5112b646d82440a1cc3f721987592 1 parent 4c7d271
@dje dje authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 postgresql/recipes/server.rb
View
13 postgresql/recipes/server.rb
@@ -2,4 +2,17 @@
package "postgresql" do
action :upgrade
+end
+
+service "postgresql-8.4" do
+ supports :restart => true, :status => true, :reload => true
+ action :enable
+end
+
+template "/etc/postgresql/8.4/main/pg_hba.conf" do
+ source "pg_hba.conf.erb"
+ owner "postgres"
+ group "postgres"
+ mode "640"
+ notifies :reload, resources(:service => "postgresql-8.4")
end
Please sign in to comment.
Something went wrong with that request. Please try again.