- From: Arjuna Christensen <
>
- To:
- Subject: [chef] Re: templates and "relative_path_from" error
- Date: Sun, 23 Aug 2009 09:40:31 +1200
On 23/08/2009, at 9:29 AM, <
">
> wrote: I can't seem to finding anything relative on google about this.
For recipes which use templates of both my own recipes and one which came from the cookbooks on github, it consistently bombs with an error similar to this when processing templates:
ERROR: template[/etc/ssmtp/ssmtp.conf] (/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb line 191) had an error: different prefix: "/" and "." ...... /usr/lib/ruby/1.8/pathname.rb:709:in `relative_path_from': different prefix: "/" and "." (ArgumentError)
This is caused by two settings usually in solo.rb or client.rb with File.join("..") in it, wrap them in File.expand_path.
-- AJ Christensen, Software Engineer
|
Archive powered by MHonArc 2.6.16.