[chef] Re: Re: Tips for running a script before kitchen converge?


Chronological Thread 
  • From: Steve Murawski < >
  • To: " " < >
  • Subject: [chef] Re: Re: Tips for running a script before kitchen converge?
  • Date: Fri, 18 Sep 2015 08:52:38 +0200

You can tell vagrant to use it's shell provisioner, but you'd likely need to provide a custom vagrantfile.erb (there's a parameter for that in the kitchen-vagrant driver).

The pre_create_command happens before the vagrant up, so that'd be something more for prepping your host environment (maybe staging sync'd folders or something).

Steve

On Fri, Sep 18, 2015 at 4:44 AM, Brandon Raabe < " target="_blank"> > wrote:
Hey Robert,

I'm not sure what's in the script, but the `pre_create_command` option may be what you're looking for. I'm assuming you're using kitchen-vagrant.



On Thu, Sep 17, 2015 at 2:53 PM, Robert Freiberger < " target="_blank"> > wrote:
Hello, 

I'm working on a simple Vagrant box with Test Kitchen and pretty sure this is a simple request. Is it possible to execute a script before kitchen converge? Maybe I'm not seeing this, but I checked the options from Test Kitchen. 

I really would like to stay away from customizing the box file if possible. 

Thanks,
Robert




--
Steven Murawski
Community Software Development Engineer @ Chef
Microsoft MVP - PowerShell
http://stevenmurawski.com



Archive powered by MHonArc 2.6.16.

§