[chef] Re: Correct bootstrap template file option?


Chronological Thread 
  • From: AJ Christensen < >
  • To: " " < >
  • Subject: [chef] Re: Correct bootstrap template file option?
  • Date: Tue, 3 Feb 2015 13:00:44 +1300

I think --template-file loads from the template bootstrap directory (or something) so you would specify `--template-file sslfxi_windows-chef-client-msi.erb` in this case.

The --bootstrap-template option which accepts the full file path, appears to be the one you are looking for and is not deprecated.

cheers,

--aj

On Tue, Feb 3, 2015 at 11:02 AM, Fouts, Chris < " target="_blank"> > wrote:

I want to use my custom bootstrap template file for a Windows bootstrap. What is the correct option in chef-client v12.0.3?

 

If I do knife bootstrap –help, I get

--template-file TEMPLATE     Full path to location of template to use. [DEPRECATED] Use -t / --bootstrap-template option instead.

 

 

So I do

 

knife bootstrap windows winrm 'mynode.domain.com' -x "Administrator" -P "password" -p 5985 --bootstrap-template .chef/bootstrap/sslfix_windows-chef-client-msi.erb

Error: invalid option: --bootstrap-template

 

If I do

 

knife bootstrap windows winrm 'mynode.domain.com' -x "Administrator" -P "password" -p 5985 -–template-file .chef/bootstrap/sslfix_windows-chef-client-msi.erb

 

I don’t see my custom template being run (I don’t see echo statements I added)

 

Any clues?

 

Chris

 

 

 

 





Archive powered by MHonArc 2.6.16.

§