- From: Chad Woolley <
>
- To: Chef Dev <
>
- Subject: [[chef-dev]] Syntax errors in postgresql server recipe due to nonstandard attribute usage?
- Date: Wed, 23 Jun 2010 00:21:09 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=MWQB7Hd1J+CCMkLjUOkFw6l3qZ3rx/41SF/5cywBteaQglTnwRDsJnAe0EFBE4zuDN cGntG+oqstBD9wC9iqgEErYTfhryzYHh/GWSPXXtXBb78E6Kh8xE/jg9J5V1paeAiJU+ Ek32xGQhnt2n4hwOMUKS5Lmb9OBha682Q8b8s=
http://github.com/opscode/cookbooks/commit/66b035d9f628371562551a4161f4117ad06993aa#commitcomment-98105
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
- [[chef-dev]] Syntax errors in postgresql server recipe due to nonstandard attribute usage?, Chad Woolley, 06/23/2010
Archive powered by MHonArc 2.6.16.