-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (30 loc) · 1.18 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
cpu = "2"
ram = "1024"
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.box_version = ">= 0"
config.vm.box_check_update = true
config.vm.box_download_checksum = true
config.vm.box_download_checksum_type = "sha1"
config.vm.box_download_insecure = true
config.vm.communicator = "ssh"
config.ssh.username = "vagrant"
config.ssh.insert_key = false
config.vm.graceful_halt_timeout = "120"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--cpuexecutioncap", "95"]
v.memory = ram
v.cpus = cpu
end
config.vm.provider "parallels" do |v|
v.memory = ram
v.cpus = cpu
end
config.vm.provision "shell", path: "vagrant/install-updates.sh"
config.vm.provision "shell", path: "vagrant/install-zsh.sh"
config.vm.provision "shell", path: "vagrant/install-common-software.sh"
config.vm.provision "shell", path: "vagrant/install-aws-cli.sh"
config.vm.provision "shell", path: "vagrant/install-terraform.sh"
config.vm.provision "shell", path: "vagrant/install-ansible.sh"
config.vm.provision "shell", path: "vagrant/install-ansible-roles.sh"
end