Simplify changing name of VM.
This commit is contained in:
parent
ed018db4c2
commit
3f421afbbe
10
Vagrantfile
vendored
10
Vagrantfile
vendored
@ -10,12 +10,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
# please see the online documentation at vagrantup.com.
|
# please see the online documentation at vagrantup.com.
|
||||||
|
|
||||||
# Every Vagrant virtual environment requires a box to build off of.
|
# 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 = "syntaxerrormmm/nethserver-6.9"
|
||||||
config.vm.box_url = "https://vagrant.libreschool.org/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
|
end
|
||||||
config.vm.provider :virtualbox do |vb|
|
config.vm.provider :virtualbox do |vb|
|
||||||
vb.name = "NethServer"
|
vb.name = myname
|
||||||
end
|
end
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# 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
|
# Using default dynamic inventory
|
||||||
ansible.playbook = "provision.yml"
|
ansible.playbook = "provision.yml"
|
||||||
ansible.groups = {
|
ansible.groups = {
|
||||||
"vagrant" => [ "NethServer" ]
|
"vagrant" => [ myname ]
|
||||||
}
|
}
|
||||||
ansible.compatibility_mode = "2.0"
|
ansible.compatibility_mode = "2.0"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user