-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
61 lines (50 loc) · 1.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define 'default' do |config|
config.vm.box = "debian/stretch64"
config.vm.hostname = "vagrant-dnsq-01.foo-domain.com"
# Vagrant >= 1.7 wants to replace the insecure_key with public boxes, but
# there is a bug in that implentation so we just allow the insecure_key
# anyway.
config.ssh.insert_key = false
config.vm.box_check_update = false
config.vm.network "private_network", ip: "67.77.255.142"
config.vm.synced_folder ".", "/vagrant",
disabled: false,
type: "sshfs",
ssh_opts_append: "-o Compression=yes -o ControlPersist=60s -o ControlMaster=auto",
sshfs_opts_append: "-o cache=no -o nonempty"
config.vm.synced_folder ".", "/dnsq-build",
type: "rsync",
rsync__auto: true,
rsync__chown: false,
rsync__exclude: [
'build/',
'dist/',
'__pycache__/',
'tmp/',
'*.egg-info/',
'.git/',
'.tox/',
'inventory',
'*.pyc',
'*.retry',
'*.built',
'*.converged',
'*.coverage',
]
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
vb.cpus = "1"
vb.memory = "768"
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
end
end