40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
# This guide is optimized for Vagrant 1.7 and above.
|
|
# Although versions 1.6.x should behave very similarly, it is recommended
|
|
# to upgrade instead of disabling the requirement below.
|
|
Vagrant.require_version ">= 1.7.0"
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
config.vm.box = "debian/buster64"
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
# Disable the new default behavior introduced in Vagrant 1.7, to
|
|
# ensure that all Vagrant machines will use the same SSH key pair.
|
|
# See https://github.com/mitchellh/vagrant/issues/5005
|
|
config.ssh.insert_key = false
|
|
|
|
config.vm.provider :libvirt do |lv|
|
|
lv.cpus = 1
|
|
lv.memory = 512
|
|
end
|
|
|
|
config.vm.define "sagittariusAstar" do |m|
|
|
m.vm.hostname = "sagittariusAstar"
|
|
m.vm.network :private_network, ip: "192.168.123.20", libvirt__dhcp_enabled: false
|
|
end
|
|
config.vm.define "trantor" do |m|
|
|
m.vm.hostname = "trantor"
|
|
m.vm.network :private_network, ip: "192.168.123.21", libvirt__dhcp_enabled: false
|
|
end
|
|
config.vm.define "terminus" do |m|
|
|
m.vm.hostname = "terminus"
|
|
m.vm.network :private_network, ip: "192.168.123.22", libvirt__dhcp_enabled: false
|
|
end
|
|
|
|
config.vm.provision "ansible" do |ansible|
|
|
ansible.become = true
|
|
ansible.verbose = "v"
|
|
ansible.playbook = "playbook.yml"
|
|
ansible.inventory_path = "inventory"
|
|
end
|
|
end
|