DEV Community

Alexey Melezhik
Alexey Melezhik

Posted on

Vagrant provisioning with Sparrowdo

Sparrowdo Vagrant support

With the latest commits of Sparrowdo project it's possible to provision Vagrant boxes.

The interface might change, however for those who're curios of what is going on:

Spin up your Vagrant host

$ vagrant up 
Enter fullscreen mode Exit fullscreen mode

Create some Sparrowdo scenario

$ nano sparrowfile 
Enter fullscreen mode Exit fullscreen mode
#!perl6
directory "/opt/my/directory";
file "/opt/my/directory/file", %( content => "hello" );
package-install "nginx";
service-start "nginx";
Enter fullscreen mode Exit fullscreen mode

Run sparrowdo scenario on vagrant host by ssh

$ sparrowdo --vagrant --bootstrap 
Enter fullscreen mode Exit fullscreen mode

Why this is useful?

  • you don't want to bother with Vagrant shell provisioning, which might be tough
  • you separate provision logic and bootstrap logic ( sparrowfile and Vagrantfile )
  • you want to try nifty Sparrowdo configuration management tool on your Vagrant boxes

Top comments (0)