2018-06-23 23:44:30 +00:00
|
|
|
Vagrant.require_version ">= 1.7.0"
|
|
|
|
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
|
|
|
|
config.vm.define "datacoop" do |datacoop|
|
|
|
|
datacoop.vm.box = "ubuntu/bionic64"
|
|
|
|
datacoop.vm.hostname = "datacoop"
|
|
|
|
datacoop.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 4096
|
|
|
|
end
|
|
|
|
datacoop.vm.network "private_network", ip: "192.168.0.42"
|
|
|
|
datacoop.vm.provision "ansible" do |ansible|
|
|
|
|
ansible.verbose = "v"
|
|
|
|
ansible.compatibility_mode = "2.0"
|
|
|
|
ansible.playbook = "playbook.yml"
|
2019-02-09 14:00:15 +00:00
|
|
|
ansible.ask_vault_pass = true
|
2018-06-23 23:44:30 +00:00
|
|
|
ansible.host_vars = {
|
|
|
|
"datacoop" => {"ansible_python_interpreter" => "/usr/bin/python3.6"}
|
|
|
|
}
|
|
|
|
ansible.groups = {
|
|
|
|
"all" => ["datacoop"]
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|