[chef] Why is my windows_package source attribute getting mucked up?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] Why is my windows_package source attribute getting mucked up?
  • Date: Fri, 6 Feb 2015 20:29:43 +0000
  • Accept-language: en-US

I have the following resource

 

windows_package “Install App1” do

  source “{node.cookbook.package_url}”

  action :install

end

 

In my case, node.cookbook.package_url = http://file-server.domain.com/path/app1.msi

 

Chef chef-client run fails, and error message shows the source attribute as

“C:\\http:\\file-server-domain.com\\path\\app1.msi”

 

If I remove the windows_package and just use the log resource, I see the correct format. That is

 

log “{node.cookbook.package_url}”

 

I see

 

<date> INFO: http://file-server.domain.com/path/app1.msi

 

What am I missing?

 

Chris




Archive powered by MHonArc 2.6.16.

§