2019-09-18 02:32:08 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.box = "debian/buster64"
|
2020-06-24 01:59:47 +00:00
|
|
|
config.vm.network "private_network", type: "dhcp"
|
2019-09-18 02:32:08 +00:00
|
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
|
|
|
|
# Machine Name
|
|
|
|
config.vm.define :moxie do |moxie| #
|
|
|
|
end
|
|
|
|
|
|
|
|
# Disable Machine Name Prefix
|
|
|
|
config.vm.provider :libvirt do |libvirt|
|
|
|
|
libvirt.default_prefix = ""
|
|
|
|
end
|
|
|
|
|
2020-06-13 05:12:23 +00:00
|
|
|
config.vm.provider "virtualbox" do |vbox|
|
|
|
|
vbox.memory = 2048
|
|
|
|
end
|
|
|
|
|
2019-09-18 02:32:08 +00:00
|
|
|
# Provision with Ansible
|
|
|
|
config.vm.provision "ansible" do |ansible|
|
2020-06-15 02:33:39 +00:00
|
|
|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
|
2019-09-18 02:32:08 +00:00
|
|
|
ansible.compatibility_mode = "2.0"
|
2020-06-15 02:33:39 +00:00
|
|
|
ansible.playbook = "dev/" + ENV["PLAYBOOK"] + ".yml"
|
2019-09-18 02:32:08 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|