Hacker News new | past | comments | ask | show | jobs | submit login

Vagrant's private network is really cool as well. I use it to test ansible provisioning scripts for server infrastructure.

    config.vm.define "ums-01" do |machine|
          machine.vm.network "private_network", ip: "192.168.1.10"
          machine.vm.network :forwarded_port, guest: 22, host: 2210, id: "ssh"
    end

    config.vm.define "ums-02" do |machine|
          machine.vm.network "private_network", ip: "192.168.1.20"
          machine.vm.network :forwarded_port, guest: 22, host: 2220, id: "ssh"
    end

-- https://www.vagrantup.com/docs/networking/private_network.ht...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: