-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
36 lines (32 loc) · 1.18 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "catalog" do |server|
server.vm.box = "bento/ubuntu-22.04"
server.vm.network :private_network, ip: "10.100.10.10"
server.vm.network :private_network, ip: "10.100.10.11"
server.vm.hostname = "api-catalog"
case RUBY_PLATFORM
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
# Fix Windows file rights, otherwise Ansible tries to execute files
server.vm.synced_folder "./", "/vagrant", :mount_options => ["dmode=755","fmode=644"]
else
# Basic VM synced folder mount
server.vm.synced_folder "", "/vagrant"
end
server.vm.provision "ansible_local" do |ansible|
ansible.playbook = "ansible/deploy-all.yml"
ansible.verbose = "v"
ansible.inventory_path = "ansible/inventories/vagrant"
ansible.config_file = "ansible/ansible.cfg"
ansible.limit = "all"
ansible.install_mode = "pip3"
end
server.vm.provider "virtualbox" do |vbox|
vbox.gui = false
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nictype1", "virtio"]
end
end
end