Skip to content

A Vagrant plugin that generates a Vagrantfile from a YAML configuration file

License

Notifications You must be signed in to change notification settings

lennartstein/vagrant-invade

Repository files navigation

vagrant-invade

Invade Logo

Code Climate

vagrant-invade is a plugin for Vagrant, the tool for creating and maintain virtual machines.
It uses a simple YAML configuration file to automatically build a Vagrantfile for your projects.

How to install

Simply run vagrant plugin install vagrant-invade
To install a certain version use the -v 'VERSION' option.

Commands

There are new commands you can use to init, validate and build your Vagrantfile.

Init

vagrant invade init creates the default invade.yml configuration file for you.

Check

vagrant invade check will check the checksum of Vagrantfile and invade.yml data. Helpful to check the files without using the build command.

Validate

vagrant invade validate will validate the invade.yml file and gives you a detailed output of missing values, wrong parameters and defaults for each option.

Build

vagrant invade build will build a Vagrantfile based on what you configured in the 'invade.yml' file and place it to the directory you did run the command. The old Vagrantfile will be saved as backup.

Feature Support

  • Box
  • Network
  • Provider
    • VirtualBox
    • VMWare
  • Provision
    • shell
    • inline
    • puppet-agent
    • puppet-apply
    • salt
  • Synced Folder
    • VB
    • NFS (use vagrant-winnfsd plugin to support Windows)

Not all features are supported yet. See source code for available options.

With command vagrant invade init you can create an example invade.yml with all available options you can pick from.

3rd party plugins

Development

You are able to collaborate to make this plugin even better. You just need a simple setup of ruby software to make it work. You could also use RVM to keep your ruby environment clean.

Requirements

  1. Vagrant v1.7+
  2. Ruby >= 2.0.0
  3. RubyGems
  4. Bundler

Setup with RVM

  1. rvm gemset create vagrant-invade
  2. rvm gemset use vagrant-invade
  3. gem install bundler
  4. bundle install

Execute vagrant while developing a plugin

  1. bundle exec vagrant [command]

About

A Vagrant plugin that generates a Vagrantfile from a YAML configuration file

Resources

License

Stars

Watchers

Forks

Packages

No packages published