Commit 0e9f3bf3 authored by Noe Nieto's avatar Noe Nieto 💬

Allow hyphens in hostnames with libvirt

parent 31dbfabe
Vagrant.configure("2") do |config|
config.vm.hostname = "{hostname}"
config.vm.define :{hostname} do |{hostname}|
{hostname}.vm.box = "debian/stretch64"
{hostname}.vm.hostname = "{hostname}"
{hostname}.vm.provider :libvirt do |libvirt|
libvirt.driver = "kvm"
libvirt.memory = "{ram}"
libvirt.username = "root"
libvirt.graphics_type = "spice"
libvirt.cpus = {cpus}
end
{hostname}.vm.provision "ansible" do |ansible|
ansible.playbook = "shim.yml"
end
config.vm.define :"{hostname}" do |maquina|
maquina.vm.box = "debian/stretch64"
maquina.vm.hostname = "{hostname}"
maquina.vm.provider :libvirt do |libvirt|
libvirt.driver = "kvm"
libvirt.memory = "{ram}"
libvirt.username = "root"
libvirt.graphics_type = "spice"
libvirt.cpus = {cpus}
end
maquina.vm.provision "ansible" do |ansible|
ansible.playbook = "shim.yml"
end
end
end
\ No newline at end of file
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment