-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
26 lines (19 loc) · 884 Bytes
/
Vagrantfile
File metadata and controls
26 lines (19 loc) · 884 Bytes
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
#!/bin/ruby
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64" # officially published image
# config.vbguest.auto_update = false
config.vm.synced_folder ".", "/vagrant", owner: "vagrant", group: "vagrant", mount_options: ["dmode=777", "fmode=700"]
Dir.mkdir(ENV['HOME'] + "/.aws") unless Dir.exist?(ENV['HOME'] + "/.aws")
config.vm.synced_folder ENV['HOME'] + "/.aws", "/home/vagrant/.aws"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = 2048
vb.cpus = 2
end
config.vm.define :provisioner do |provisioner|
# Install Ansible, Packer, Docker, Git, Terraform and Kubernetes
provisioner.vm.provision "shell", inline: "sudo apt-get update"
provisioner.vm.provision "shell", inline: "sudo apt-get install linuxbrew-wrapper -y"
# provisioner.vm.provision "shell", inline: "brew install nginx"
end
end