Simplify changing name of VM.

This commit is contained in:
Emiliano Vavassori 2018-11-10 14:47:52 +01:00
parent ed018db4c2
commit 3f421afbbe
1 changed files with 7 additions and 3 deletions

10
Vagrantfile vendored
View File

@ -10,12 +10,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
# Defining a base vm name:
myname = "NethServer"
config.vm.box = "syntaxerrormmm/nethserver-6.9"
config.vm.box_url = "https://vagrant.libreschool.org/nethserver-6.9"
config.vm.define "NethServer" do |nethserver|
config.vm.define myname do |nethserver|
end
config.vm.provider :virtualbox do |vb|
vb.name = "NethServer"
vb.name = myname
end
# Disable automatic box update checking. If you disable this, then
@ -130,7 +134,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Using default dynamic inventory
ansible.playbook = "provision.yml"
ansible.groups = {
"vagrant" => [ "NethServer" ]
"vagrant" => [ myname ]
}
ansible.compatibility_mode = "2.0"
end