-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
executable file
·43 lines (35 loc) · 1.2 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
##################################################
# Vagrant Configuration
# focal-php8
##################################################
Vagrant.require_version ">=2.1.1"
ENV['PYTHONIOENCODING'] = "utf-8"
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.name = "focal-php8.vb"
v.customize [
"modifyvm", :id,
"--name", "focal-php8.vb",
"--memory", 2048,
"--natdnshostresolver1", "on",
"--cpus", 1,
]
end
config.vm.hostname = "focal-php8.vb"
config.vm.box = "bento/ubuntu-20.04"
config.vm.network :private_network, ip: "10.10.10.10"
config.ssh.forward_agent = true
config.ssh.insert_key = false
#############################################################
# Ansible initial provisioning
#############################################################
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook.yml"
ansible.inventory_path = "ansible/inventories/dev"
ansible.limit = 'all'
ansible.extra_vars = {
private_interface: "10.10.10.10",
hostname: "focal-php8.vb"
}
end
end