This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COOK-286, platform specific version as set_unless for postgresql
- Loading branch information
jtimberman
committed
Jun 3, 2010
1 parent
a459aa1
commit 66b035d
Showing
4 changed files
with
42 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
service "postgresql" do | ||
case node[:platform] | ||
when "debian","ubuntu" | ||
service_name "postgresql-8.3" | ||
service_name "postgresql-#{node.postgresql.version}" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
thewoolleyman
Contributor
|
||
end | ||
supports :restart => true, :status => true, :reload => true | ||
action :nothing | ||
|
What is this syntax of 'node.postgresql.version'? It is causing a syntax error under chef-solo 0.9.0.rc02. Why isn't it node[:postgresql][:version]?
DEBUG: Executing /etc/init.d/postgresql-#Chef::Node::Attribute:0x7f7d86bfbcf0 status
DEBUG: ---- Begin output of /etc/init.d/postgresql-#Chef::Node::Attribute:0x7f7d86bfbcf0 status ----
DEBUG: STDOUT:
DEBUG: STDERR: sh: cannot open Chef::Node::Attribute:0x7f7d86bfbcf0: No such file
DEBUG: ---- End output of /etc/init.d/postgresql-#Chef::Node::Attribute:0x7f7d86bfbcf0 status ----
DEBUG: Ran /etc/init.d/postgresql-#Chef::Node::Attribute:0x7f7d86bfbcf0 status returned 2
ERROR: service[postgresql](/home/ubuntu/chef/railsci_chef_repo/cookbooks/opscode/postgresql/recipes/server.rb line 24) had an error:
/usr/sbin/update-rc.d -n -f postgresql-#Chef::Node::Attribute:0x7f7d86bfbcf0 failed - #<Process::Status: pid=12280,exited(2)>
/home/ubuntu/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.0.rc02/bin/../lib/chef/provider/service/debian.rb:60:in
service_currently_enabled?' /home/ubuntu/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.0.rc02/bin/../lib/chef/provider/service/debian.rb:32:in
load_current_resource'