-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVagrantfile
More file actions
33 lines (28 loc) · 1.1 KB
/
Vagrantfile
File metadata and controls
33 lines (28 loc) · 1.1 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.9.1"
VAGRANTFILE_API_VERSION = "2"
### Scenario based variables (Use vagrant_config.yml in scenario folder) ###
# Customize to avoid network clashes of VMs
IP_BLOCK = "192.168.41."
###########
### Local Environment Variables (use ENVIRONMENT variables) ###
# Configure for environment
RAM_ASSIGNED = if ENV['VAGRANT_VM_MEMORY_SIZE']!=nil then ENV['VAGRANT_VM_MEMORY_SIZE'].to_i else 2048 end
###########
# Ability to override the default vagrant file from a scenario's setup.sh script setting this environment variable.
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.boot_timeout = 600
# scenario['servers'].each_with_index do |server, machine_id|
config.vm.define "tutorial" do |node|
node.vm.box = "ubuntu/trusty64"
node.vm.network "private_network", ip: "#{IP_BLOCK}#{100}"
node.vm.hostname = "tutorial"
node.vm.provider :virtualbox do |vb|
vb.name = "proxysql_tutorial"
vb.memory = RAM_ASSIGNED
vb.cpus = 1
end
# config.vm.provision "shell", path: "./scripts/setup.sh"
end
end