/vagrant-builder

Setup dynamic Vagrant environments

Primary LanguageShellMIT LicenseMIT

Dynamic Vagrant Machines

Installation

This structure utilizes Vagrant and VirtualBox to create virtual machines. So, before using it, you will need to make sure you have both of them installed on your machine.

Edit the macines.yml file to customize your machine(s).

-
    ip: "192.168.10.10"
    cpus: 1
    swap: 2048
    memory: 1024
    hostname: web1
    provisions:
        php:
        composer:
        node:
        mysql:
        nginx:
    ports:
        - send: 8080
          to: 80
    folders:
        - map: ~/Server
          to: /var/www
...

Available Provisions

  • apache
  • beanstalkd
  • composer
  • haproxy
  • memcached
  • mongodb
  • mysql
  • nginx
  • node
  • php
  • redis
  • rvm
  • supervisord

Run the following command to create/start your machine(s).

$ vagrant up

Run the following command to reprovision your machine(s).

$ vagrant provision

Code Structure

├── provisions
│   ├── scripts
│   │   ├── post.sh
│   │   ├── pre.sh
│   │   └── swap.sh
│   ├── apache.sh
│   ├── beanstalkd.sh
│   ├── composer.sh
│   ├── haproxy.sh
│   ├── memcached.sh
│   ├── mongodb.sh
│   ├── mysql.sh
│   ├── nginx.sh
│   ├── node.sh
│   ├── php.sh
│   ├── redis.sh
│   ├── rvm.sh
│   └── supervisord.sh
├── .editorconfig
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
├── Vagrantfile
└── machines.yml

License

This package is open-sourced software licensed under the MIT license.