0.1.6 • Published 10 years ago

tjay-vagrantfile-generator v0.1.6

Weekly downloads
10
License
MIT
Repository
github
Last release
10 years ago

TJAY Vagrantfile Generator

Quick utility I tossed together to generate my stock vagrantfile. Defaults to using my stock Ubuntu vagrant box https://vagrantcloud.com/sixlive/boxes/tjay-base-box

Install

npm install -g tjay-vagrantfile-generator

Usage

Install and run generate-vagrantfile. It will guide you through the rest.

Output

Output will vary based on input.

Example

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # Base box config
  config.vm.box = "sixlive/tjay-base-box"

  # Networking
  config.vm.hostname = "local.dev"
  config.vm.network "private_network", ip: "192.168.33.10"

  # Hostmanager Settings - https://github.com/smdahlen/vagrant-hostmanager
  config.hostmanager.enabled = true
  config.hostmanager.manage_host = true

  # Extra VirtualBox Config
  config.vm.provider "virtualbox" do |v|
    v.memory = 1024
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  end

  # Folder Sync
  config.vm.synced_folder ".", "/var/www/html",
    create: true,
    owner: "www-data", group: "www-data",
    :mount_options => ["dmode=777", "fmode=755"]
end
0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago