Giter VIP home page Giter VIP logo

vagrant-mutagen-project's Introduction

vagrant-mutagen-project

This plugin updates the current users SSH config to register the Vagrant machine, and then starts the Mutagen project.

This version was forked from https://github.com/dasginganinja/vagrant-mutagen with the intention of resolving bugs in SSH setup and Windows support for Deskpro use. The majority of the business logic around SSH config and Mutagen project handling has been rewritten.

The plugin has not been published to rubygems.org and is only available for manual download from Github releases.

Installation

Remove any previous installation of vagrant-mutagen plugin first, then download the latest gem file from the Github releases page and install using the gem filename:

$ vagrant plugin uninstall vagrant-mutagen
$ vagrant plugin install /path/to/gem 

Windows support will require the Windows fork of the OpenSSH client to be installed: (https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview)

Uninstall it with:

$ vagrant plugin uninstall vagrant-mutagen-project

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.

The mutagen project file name can be overridden with:

config.mutagen.project_file = "mutagen-other.yml"

Example Project Orchestration Config (mutagen.yml)

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

sync:
  vagrant-mutagen-project-node1:
    alpha: '.'
    beta: 'vagrant-mutagen-project-node1:/home/vagrant/vagrant-mutagen-project'
    mode: 'two-way-resolved'
    flushOnCreate: true
    ignore:
      vcs: true
    configurationBeta:
      permissions:
        defaultOwner: vagrant
        defaultGroup: vagrant
        defaultFileMode: 644
        defaultDirectoryMode: 755

Installing development version

If you would like to install the development version of vagrant-mutagen-project, run the commands:

git clone https://github.com/deskpro/vagrant-mutagen-project
cd vagrant-mutagen-project
bundle install
rake build
vagrant plugin install pkg/vagrant-mutagen-project-*.gem

Useful development commands

To run the plugin with Vagrant in development, run the command:

bundle exec vagrant ...

This does not require a gem be built before execution.

vagrant-mutagen-project's People

Contributors

spaulg avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.