[chef] Re: create template from library method?


Chronological Thread 
  • From: Bryan Baugher < >
  • To:
  • Subject: [chef] Re: create template from library method?
  • Date: Wed, 1 Aug 2012 16:10:15 -0500

Since you are not using the template dsl and instead are creating a template object I would imagine you would still need to tell it to run.

http://wiki.opscode.com/display/chef/Evaluate+and+Run+Resources+at+Compile+Time

On Wed, Aug 1, 2012 at 3:59 PM, Wes Morgan < " target="_blank"> > wrote:
Hey Chefs,

I have a method in a library (I know, I know, I need to convert it to an LWRP–one day) that creates a template. It looks like this:

https://gist.github.com/3230347

When it gets run, I see "Giving [user] root access to MySQL server in the Chef log, but the template file never gets created.

When I run the same template block with a normal template resource in a recipe, it works.

Anyone know why it's not creating the template?

Wes



--
-Bryan



Archive powered by MHonArc 2.6.16.

§