-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathVagrantfile
41 lines (36 loc) · 1.65 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This guide is optimized for Vagrant 1.7 and above.
Vagrant.require_version ">= 1.7.0"
Vagrant.configure("2") do |config|
#######################################
### phoenix Servers ######################
#######################################
# Disable the new default behavior introduced in Vagrant 1.7, to
# ensure that all Vagrant machines will use the same SSH key pair.
# See https://github.com/mitchellh/vagrant/issues/5005
config.ssh.insert_key = false
config.ssh.private_key_path = '~/.vagrant.d/insecure_private_key'
config.vm.define "phoenix" do |phoenix|
# phoenix.vm.box = "bento/ubuntu-22.04"
phoenix.vm.box = "bento/ubuntu-18.04"
# phoenix.vm.box = "bento/ubuntu-16.04"
# phoenix.vm.box = "bento/debian-9"
# phoenix.vm.box = "bento/centos-7"
# phoenix.vm.box = "bento/centos-6"
# phoenix.vm.box = "bento/fedora-27"
phoenix.vm.hostname = "phoenix.local"
phoenix.vm.network "private_network", ip: "192.168.56.10"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8081" will access port 8081 on the guest machine.
# NOTE: This will enable public access to the opened port
config.vm.network "forwarded_port", guest: 8081, host: 8081
config.vm.network "forwarded_port", guest: 8443, host: 8443
#config.vm.network "public_network"
config.vm.provision "shell", path: "bootstrap.sh", privileged: false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2"]
end
end
end