[chef] Re: HELP: about how to use template


Chronological Thread 
  • From: Marco Betti < >
  • To:
  • Subject: [chef] Re: HELP: about how to use template
  • Date: Sun, 9 Feb 2014 09:25:37 +0100

Hi Sam,
error log says that you aren't correctly using mac variable.
Please, try with
HWADDR=<%= @mac %>
in your template and so on for every other variable.
Cheers,
Marco

Il 09/feb/2014 09:18 "Sam Su" < "> > ha scritto:
Hi,

I am trying to creat a simple cookbook to produce network config files but get a error as below:

It looks like chef-client try to use Chef::Mixin::Template instead of Chef::Provider::File::Template, I am wondering how to assign the template coming from Chef::Provider::File::Template instead of Chef::Mixin::Template in my cookbook? 

Much appreciated for any help.

Thanks,
Sam



Archive powered by MHonArc 2.6.16.

§