Syntax errors in postgresql server recipe due to nonstandard attribute usage?


#1

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:inload_current_resource’

Thanks…
– Chad