[chef] using cookbook_file


Chronological Thread 
  • From: Bridger Larson < >
  • To: " " < >
  • Subject: [chef] using cookbook_file
  • Date: Tue, 23 Oct 2012 15:48:44 +0000
  • Accept-language: en-US

I am trying to have Chef deliver a bin file that needs to be run as part of the recipe, but the file is only being delivered at the very end of the recipe.  When it reaches the line to run the file I get an error saying that it doesn’t exist, then after everything else runs I see that chef it putting the file in place.  Am I using this wrong or is there a better way to do this?  Should I just switch to wget or scp to get the file instead?

 

My recipe sets up the directories, tries to transfer or create the file, execute it then make config changes.  If I run the recipe again it will actually run the file and finish off the recipe correctly. 

 

Thank you for your help!

 

Bridger Larson




Archive powered by MHonArc 2.6.16.

§