[chef] Puzzled about convergence, please advise?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] Puzzled about convergence, please advise?
  • Date: Thu, 13 Nov 2014 20:21:12 +0000
  • Accept-language: en-US

I thought I understood this, so I’m puzzled that it’s not working the way I think it should work. I have the following simple recipe.

 

rpm_package “Installing RPM” do

  action :install

  package_name myRPM.rpm

end

 

template “/opt/some_path/conf/myRPMconfig.xml” do

  source “myRPMconfig.xml.erb”

end

 

I expect both resources to be executed during convergence (run time), correct?

 

If so, the rpm_package should install myRPM.rpm, which creates the /opt/some_path/conf directory, so when the template resource runs, the directory is already there. However, when I run chef-client, I get an error saying “No such file or directory  - /opt/some_path/conf”

 

I know that myRPM.rpm creates the directory because if I install it manually, it does create it.

 

Any advise?

 

Chris




Archive powered by MHonArc 2.6.16.

§