Vagrant 101 - Setup multiple machines in one vagrant file

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ •

  • @Kosm0snuata
    @Kosm0snuata 2 роки тому +1

    Thanks for putting this together. I finally have a decent idea of how to config vagrantfiles and throwing up multiple local VMs.

  • @superz991
    @superz991 4 роки тому +1

    Thank you. wonderful class.

  • @tanveersaleem7136
    @tanveersaleem7136 3 роки тому +1

    Very good. I have a question can you please make a one video that contain a project form development to deployment. I mean we can see everything in action where we will use docker , kubernetes and vagrant like that.

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      Thank you for the great feedback! I just finished filming a Devops project that contains vagrant, ansible, docker and cocker-swarm. Hope to have it out in the next 2 weeks!

  • @aaronevans5494
    @aaronevans5494 3 роки тому

    Any advice why my VM's would be defaulting to localhost for the ip even when I explicitly use the same ones you did in the vagrant file

  • @thats_conk_creet
    @thats_conk_creet 3 роки тому

    How would you go about creating custom sized disks for these machines? It seems to default to 64GB on a hdd which is a bit too much for me.

  • @louiegietrinanes4798
    @louiegietrinanes4798 2 роки тому +1

    Thank you so much

  • @massiccreation2981
    @massiccreation2981 4 роки тому +1

    Nice Info

  • @DevOpsJourney
    @DevOpsJourney  4 роки тому

    Three hosts one Vagrantfile or the Vagrant Centipede?

    • @ashafiullah
      @ashafiullah 4 роки тому +1

      Hey Brad, I am still not clear why you had used different ports for SSH on each server. It would be helpful if you could provide more information for us. Also, here is what i used for multiple VMs in a single vagrantfile. I have excluded synced folder and the copied file here.Also, I have added a display message for each server based on their distribution just to make it more visible in case anyone want to have different distribution packages:
      Vagrant.configure("2") do |config|
      config.vm.define "ubuntu-vm" do |vm1|
      vm1.vm.hostname="ubuntu-vm"
      vm1.vm.box = "bento/ubuntu-18.04"
      vm1.vm.network "private_network", ip: "192.168.1.1"
      vm1.vm.provider "virtualbox" do |vb|
      vb.name = "ubuntu-vm"
      vb.gui = false
      vb.memory = "1024"
      vb.cpus = "2"
      end
      vm1.vm.provision "shell", run: "always", inline:

    • @DevOpsJourney
      @DevOpsJourney  4 роки тому +2

      Hey Mysterybox.
      I like the provision command you added to echo!
      As for the question, I am reviewing the code and it looks like the SSH port didn't need to be unique since the IPs were unique. I think in a previous iteration I had it so the vagrant machines used the same IP as the host machine (NAT mode) so the ports needed to be different to differentiate the traffic.

  • @stephanysra
    @stephanysra 3 роки тому

    Very good! Thank you!

  • @76739
    @76739 2 роки тому

    Спасибо