Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Commit

Permalink
allow controlling how to restart postgres
Browse files Browse the repository at this point in the history
implements #83
  • Loading branch information
Marshall Jones authored and phlipper committed May 10, 2014
1 parent c515341 commit f9e0ff8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#

default["postgresql"]["version"] = "9.3"
default["postgresql"]["cfg_update_action"] = :restart

#------------------------------------------------------------------------------
# APT Repository
Expand Down
12 changes: 6 additions & 6 deletions recipes/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
owner "postgres"
group "postgres"
mode "0644"
notifies :restart, "service[postgresql]"
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]"
end

# pg_ctl
Expand All @@ -26,7 +26,7 @@
owner "postgres"
group "postgres"
mode "0644"
notifies :restart, "service[postgresql]"
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]"
end

# pg_hba
Expand All @@ -35,7 +35,7 @@
owner "postgres"
group "postgres"
mode "0640"
notifies :restart, "service[postgresql]"
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]"
end

# pg_ident
Expand All @@ -44,7 +44,7 @@
owner "postgres"
group "postgres"
mode "0640"
notifies :restart, "service[postgresql]"
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]"
end

# postgresql
Expand All @@ -54,7 +54,7 @@
owner "postgres"
group "postgres"
mode "0644"
notifies :restart, "service[postgresql]"
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]"
end

# start
Expand All @@ -63,5 +63,5 @@
owner "postgres"
group "postgres"
mode "0644"
notifies :restart, "service[postgresql]", :immediately
notifies node["postgresql"]["cfg_update_action"], "service[postgresql]", :immediately
end

0 comments on commit f9e0ff8

Please sign in to comment.