ansible-install-server/Vagrantfile

25 lines
550 B
Plaintext
Raw Normal View History

2020-08-26 10:10:36 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
def create(config, name)
config.vm.define name do |v|
v.vm.hostname = name
v.vm.box = "generic/debian10"
v.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
end
2020-10-14 22:20:05 +00:00
v.vm.network "private_network", virtualbox__intnet: true, auto_config: false
2020-08-26 10:10:36 +00:00
v.vm.provision "ansible" do |ans|
2020-10-14 22:20:05 +00:00
ans.playbook = "playbook-vagrant.yml"
2020-08-26 10:10:36 +00:00
end
end
end
Vagrant.configure("2") do |config|
create(config, "faiserver")
end