ansible-bibliogram/Vagrantfile

38 lines
1.1 KiB
Ruby
Raw Permalink Normal View History

2021-02-25 19:56:31 +01:00
# 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"
docker = ENV['ANSIBLE_BIBLIOGRAM_DOCKER'] == '1'
2021-02-25 19:56:31 +01:00
Vagrant.configure(2) do |config|
config.vm.box = "debian/buster64"
config.vm.define "debiantest" do |m|
m.vm.hostname = "debiantest"
m.vm.network :private_network, ip: "192.168.123.2", libvirt__dhcp_enabled: false
m.vm.synced_folder ".", "/vagrant", disabled: true
end
# 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 = 2
lv.memory = 1024
end
config.vm.provision "ansible" do |ansible|
ansible.become = true
ansible.verbose = "v"
if docker == true
ansible.playbook = "playbook_docker.yml"
else
ansible.playbook = "playbook_systemd.yml"
end
2021-02-25 19:56:31 +01:00
ansible.inventory_path = "inventory"
end
end