0.01
No release in over 3 years
Low commit activity in last 3 years
Enables Vagrant to utilize mutagen for project sync
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Vagrant::Mutagen

Gem Version Gem Gem

This plugin adds an entry to your ~/.ssh/config file on the host system.

On up, resume and reload commands, it tries to add the information, if it does not already exist in your config file. On halt, destroy, and suspend, those entries will be removed again.

Installation

$ vagrant plugin install vagrant-mutagen

Uninstall it with:

$ vagrant plugin uninstall vagrant-mutagen

Update the plugin with:

$ vagrant plugin update vagrant-mutagen

Usage

You need to set orchestrate and config.vm.hostname.

config.mutagen.orchestrate = true

This hostname will be used for the entry in the ~/.ssh/config file.

Orchestration also requires a mutagen.yml file configured for your project.

Example Project Orchestration Config (mutagen.yml)

As an example starting point you can use the following for a Drupal project:

sync:
  defaults:
    mode: "two-way-resolved"
    ignore:
      vcs: false
      paths:
        - /.idea/
        - /vendor/**/.git/
        - contrib/**/.git/
        - node_modules/
        - /web/sites/**/files/
    symlink:
      mode: "portable"
    watch:
      mode: "portable"
    permissions:
      defaultFileMode: 0644
      defaultDirectoryMode: 0755
  app:
    alpha: "your-vm.hostname:/srv/www/app/"
    beta: "./app/"

Installing development version

If you would like to install vagrant-mutagen on the development version perform the following:

git clone https://github.com/dasginganinja/vagrant-mutagen
cd vagrant-mutagen
git checkout develop
gem build vagrant-mutagen.gemspec
vagrant plugin install vagrant-mutagen-*.gem

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request on the develop branch

Versions

0.1.2

  • Issues with multiple VMs arose due to outdated SSH config. SSH config is now regenerated each vagrant up.

0.1.1

  • Added mutagen.yml example

0.1.0

  • Added config to enable orchestration.
  • Added new actions to start and terminate orchestration.
  • Hooked new actions into vagrant lifecycle events.
  • Refactored vagrant-hostsupdater hosts commands for config.

0.0.1

  • Started with vagrant-hostsupdater 1.1.0
  • Changed all references of hostsupdater to mutagen.
  • Have not tested anything, but this is pushed up.