[chef] Re: Re: Re: Re: Re: Template correct but file not


Chronological Thread 
  • From: Tristan Sloughter < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Template correct but file not
  • Date: Thu, 6 Jan 2011 15:23:22 -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=e0fKiyxziKVyfgNm/BlITx8kH56BV+dTzp4wKx+iIX1UPM9IzYVpMh/S7NVYO9PajD oAUrX5iKyHtL5HQwd394gYJ9E43wWnDpNzMyWy/t29aj87a8lPzBJrsew+G2DPTk/zzX Yt4OFYPm5gRot15FeYuSD9/Pcb/wOu7o17kXc=

Well, I'm done with this issue :). I found another place I could turn on SMP for the erlang node besides throwing it in the start command (forgot to just put it in vm.args) and deployed with that and everything is fine -- since that template was written correctly.

Thanks.

Tristan

On Thu, Jan 6, 2011 at 2:47 PM, Tristan Sloughter < "> > wrote:
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 < " 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
> 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.

§