[chef] Re: Why will chef not read a file in a template?


Chronological Thread 
  • From: Andrea Campi < >
  • To: " " < >
  • Subject: [chef] Re: Why will chef not read a file in a template?
  • Date: Sat, 22 Feb 2014 22:02:49 -0800

Also, if you are using Chef 11 then you can include it as a partial.

On Saturday, February 22, 2014, Daniel DeLeo < "> > wrote:


On Saturday, February 22, 2014 at 9:53 AM, Denis Barishev wrote:

> Is it okay
>
> that you use single quotes, the value won't be substituted...
>
> Regards,
> Dennis


This is correct. Here’s an example in `irb`:

irb(main):016:0> '#{Time.now}'
=> "\#{Time.now}"
irb(main):017:0> "#{Time.now}"
=> "2014-02-22 09:52:48 -0800"



--
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§