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.
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!
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:
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.
Thanks for putting this together. I finally have a decent idea of how to config vagrantfiles and throwing up multiple local VMs.
Thank you. wonderful class.
Glad it was helpful!
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.
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!
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
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.
Thank you so much
Nice Info
Thank you!
Three hosts one Vagrantfile or the Vagrant Centipede?
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:
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.
Very good! Thank you!
Glad you liked it!
Спасибо