-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
40 lines (32 loc) · 1.13 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
#!/usr/bin/env ruby
# ^ Syntax hint
require 'ffi'
`ssh-add >> /dev/null 2>&1`
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "bento/centos-7"
config.vm.hostname = "chef-varnish"
config.vm.provider "virtualbox" do |vb, overrides|
vb.customize [
"modifyvm", :id,
"--memory", "1024",
"--cpus", "4",
"--name", "chef-varnish"
]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
# Network configuration
overrides.vm.network :private_network, ip: "10.100.100.100"
overrides.ssh.forward_agent = true
end
config.vm.provision "shell", path: "vagrant/provision.sh"
config.vm.provision "chef_solo" do |chef|
chef.version = "13"
chef.add_recipe "varnish-centos"
end
end