Permalink
Browse files

pg_hba template

  • Loading branch information...
1 parent 4c7d271 commit eebd20f54fa5112b646d82440a1cc3f721987592 @dje dje committed Mar 15, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 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

0 comments on commit eebd20f

Please sign in to comment.