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..TristanOn Thu, Jan 6, 2011 at 10:57 AM, Tristan Sloughter < " target="_blank"> > 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
< " target="_blank"> > wrote:
> Hmm, I don't see anything. Tried with out -l debug and with. I can justShouldn't depend on the log level, since it's just printing directly
> append it to client.rb, right?
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.