I seem to be having issue where vagrant hostmanager is not updating vagrant-hostmanager-start id, here is example.
Vagrant.configure(2) do |config|
# Enables the default hostmanager behavior
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.define 'minion2' do |minion2|
minion2.vm.box = 'minion2'
minion2.vm.box_url = "file:///Users/xxxx/Documents/vagrant_boxes/centos7_vagrant"
minion2.ssh.private_key_path = "/Users/xxxx/.ssh/id_rsa"
minion2.vm.host_name = 'minion2' + '.' + 'xxxx.local.com'
minion2.hostmanager.aliases = %w(minion2)
minion2.vm.network "private_network", ip: 'xxx.xxx.xxx.xx' , :netmask => '255.255.255.0'
minion2.ssh.username = ''xxx'
config.vm.provider :virtualbox do |vb|
vb.name = 'minion2'
end
end
end
this is the only error i see.
==> minion2: Updating /etc/hosts file on active guest machines...
The machine with the name 'masterk' was not found configured for
this Vagrant environment.
And the message is correct because vagrant-hostmanager-start id: e66c68c9-d7ce-45fb-8c9d-b95811816e22 is already defined in host files.
If i run vagrant hostmanager it updates the hosts file with the minion2 hostname but it overwrites the masterk entry.
Hi
I seem to be having issue where vagrant hostmanager is not updating vagrant-hostmanager-start id, here is example.
this is the only error i see.
And the message is correct because vagrant-hostmanager-start id: e66c68c9-d7ce-45fb-8c9d-b95811816e22 is already defined in host files.
If i run vagrant hostmanager it updates the hosts file with the minion2 hostname but it overwrites the masterk entry.
versions:
Vagrant 1.7.4 vagrant-hostmanager (1.6.1)
any more info needed please let me know. Thanks