Last active
September 23, 2018 13:17
-
-
Save s-belichenko/e5fb5483e12c23f57155d204608ad23b to your computer and use it in GitHub Desktop.
scotch/box non specific vagrant file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
######################################################### | |
# | |
# Vagrant file v1.2.0 for scotch/box | |
# Vagrant version: 1.9.5 and earler | |
# | |
######################################################### | |
PROJECT_NAME = "vm.local" | |
PROGECT_MEMORY = 1024 | |
PROJECT_CORE = 1 | |
PROJECT_IP = "192.168.10.x" | |
# see more: https://github.com/scotch-io/scotch-box/issues/367#issuecomment-363450664 | |
Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com') | |
Vagrant.configure("2") do |config| | |
config.vm.provider "virtualbox" do |v| | |
v.name = PROJECT_NAME | |
v.memory = PROGECT_MEMORY | |
v.cpus = PROJECT_CORE | |
end | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" | |
config.vm.box = "scotch/box" | |
# uncomment and edit this if you want to specify version of box | |
#config.vm.box_version = "x.x.x" | |
# set the domain name and IP* | |
# *you can use a different range of local addresses, 10.10.0.0 for example | |
config.vm.network "private_network", ip: PROJECT_IP | |
config.vm.hostname = PROJECT_NAME | |
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] | |
# uncomment this if you are bothered by 'stdin-is-not-a-tty' error | |
# see more here http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html | |
#config.vm.provision "fix-no-tty", type: "shell" do |s| | |
# s.privileged = false | |
# s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile" | |
#end | |
# uncomment and edit this if you have a bootstrap/common.sh or any other bootstrap script | |
#config.vm.provision "Some name", type: "shell" do |s| | |
# s.keep_color = true | |
# s.binary = true | |
# s.privileged = false | |
# s.path = "bootstrap/common.sh" | |
#end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment