-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathVagrantfile
More file actions
41 lines (33 loc) · 1.18 KB
/
Vagrantfile
File metadata and controls
41 lines (33 loc) · 1.18 KB
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
Vagrant.configure("2") do |config|
config.vm.synced_folder ".", "/vagrant"
config.vm.provision("etc_hosts", type: 'ansible') do |ansible|
ansible.playbook = "development/playbooks/etc_host.yml"
ansible.compatibility_mode = "2.0"
end
config.vm.provision('disk_resize', type: 'ansible') do |ansible_provisioner|
ansible_provisioner.playbook = 'development/playbooks/resize_disk.yaml'
end
config.vm.define "quadlet" do |override|
override.vm.box = ENV.fetch("FOREMANCTL_BASE_BOX", "centos/stream9")
override.vm.hostname = "quadlet.example.com"
override.vm.provider "libvirt" do |libvirt, provider|
libvirt.memory = 10240
libvirt.cpus = 4
libvirt.machine_virtual_size = 30
end
end
config.vm.define "client" do |override|
override.vm.box = "centos/stream9"
override.vm.hostname = "client.example.com"
override.vm.provider "libvirt" do |libvirt, provider|
libvirt.memory = 1024
end
end
config.vm.define "database" do |override|
override.vm.box = "centos/stream9"
override.vm.hostname = "database.example.com"
override.vm.provider "libvirt" do |libvirt, provider|
libvirt.memory = 2048
end
end
end