0.0
No commit activity in last 3 years
No release in over 3 years
A Vagrant plugin that runs a given provision script before any other tasks.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6.1
~> 1.3
~> 0.7.1
~> 4.3.1
~> 10.1.1
~> 2.14.1
~> 0.17.0
 Project Readme

vagrant-adam

Build Status Coverage Status Code Climate

A Vagrant plugin that ensures a given script is run before anything else on a Vagrant environment. This is useful if you want to fix issues around requiretty in sudoers, or doing a one-off fix for a Vagrant bo.

The plugin should work correctly with all providers, but right now the acceptance tests are only setup for Virtualbox. However, from my quick tests it works with the following Vagrant providers:

Installation

Ensure you have downloaded and installed Vagrant 1.1 or newer from the Vagrant downloads page.

Installation is performed in the prescribed manner for Vagrant 1.1 plugins.

$ vagrant plugin install vagrant-adam

Usage

The Vagrant Adam plugin automatically hooks into the Vagrant provisioning middleware, and it's setup to always run before the Vagrant::Action::Builtin::SyncedFolders process (I believe it's unique in this fact!)

To run a particular script, you specify the path or URL of the script you want to run

Path on host machine

Vagrant.configure("2") do |config|

  config.adam.provision_url = '/tmp/cool_script.sh'

  ...

end

Url of script

Vagrant.configure("2") do |config|

  config.adam.provision_url = 'https://gist.githubusercontent.com/petems/367f8119bbff011bf83e/raw/29efc24e8a0db3ce2e0452f1c23d2119146ed583/remove_requiretty.sh'

  ...

end

Contributing and Tests

Getting Help

Authors

  • Peter Souter

Thank you to all of our Contributors, testers, and users.

If you'd like to contribute, please see our contribution guidelines first.