puppet - Vagrant - 2 VMs have same IP -
im trying play around puppet. fired 2 debian instances using vagrant. vagrantfile looks this
vagrant.configure("2") |config|    config.vm.define "puppetagent" |puppetagent|     puppetagent.vm.box = "puphpet/debian75-x64"     puppetagent.vm.hostname = "puppetagent.example.com"     puppetagent.vm.network "private_network",ip: "192.168.10.21"   end    config.vm.define "puppetmaster" |puppetmaster|     puppetmaster.vm.box = "puphpet/debian75-x64"     puppetmaster.vm.hostname = "puppetmaster.example.com"     puppetmaster.vm.network "private_network",ip: "192.168.10.22"   end however when ssh both instances, , /etc/hosts files (on both ) this:
# master - instance1  127.0.0.1   localhost 127.0.1.1 puppetmaster.example.com puppetmaster  # agent - instance2  127.0.0.1   localhost 127.0.1.1 puppetagent.example.com puppetagent im confused regarding this. did specify diff ip's both, why show same ip's in hosts file?
could hazard guess running debian based vm?
the 127.0.1.1 line, although not debian specifity per se added debian installer explained on debian manual. not unices so.
this loopback addres, nothing actual ip adress vm, regardless if using debian or not.
if want have /etc/hosts updated vagrant, need use plugin vagrant hostmanager.
Comments
Post a Comment