- From: Tristan Sloughter <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Template correct but file not
- Date: Thu, 6 Jan 2011 14:47:54 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=abntw/hn9dWQUaopWzc5akjDoy335EJKhBJpxz5gp2o7KN+bTyJ2NdA1DunmwBs1r4 mmNMXii4Wf/A6eMOcByFvKgDF2P+whPbInCzOIbyvlDpBdpps5fLzyfW2zNWEj7rN9d+ cH18v+1XZx4g5HN6ez7IPBHF2hTSuRpAVrx8M=
One more thing I've now noticed. I modified provider/template.rb to print out the contents of rendered_template before moving the rendered_template file to the file location. And its correct! And if I put an 'exit' right after the file move the file is correct when I look at it!
Buuut, if I let it continue to run (which of course it needs to) the file is wrong.
If anyone has any crazy theories of what could happen after template.rb's action_create I would much appreciate it..
Tristan
On Thu, Jan 6, 2011 at 10:57 AM, Tristan Sloughter
<
">
> wrote:
I see the problem, I get this if I run shef as a client:
/etc/chef/client.rb:85:in `from_file': undefined method `render_template' for module `Chef::Mixin::Template' (NameError)
On Thu, Jan 6, 2011 at 10:54 AM, Daniel DeLeo
<
" target="_blank">
> wrote:
On Thu, Jan 6, 2011 at 8:49 AM, Tristan Sloughter
> Hmm, I don't see anything. Tried with out -l debug and with. I can just
> append it to client.rb, right?
Shouldn't depend on the log level, since it's just printing directly
to stderr (so it assumes you're running chef-client in the
foreground). You can try changing the `STDERR.puts` to
`Chef::Log.error` to send the info through the logger.
Dan
Archive powered by MHonArc 2.6.16.