December 2018
Beginner
826 pages
22h 54m
English
In this chapter, we're going to need a couple of virtual machines (VMs).
Feel free to use the Vagrantfile that follows. We're mostly going to work across the private network, between the VMs:
# -*- mode: ruby -*-# vi: set ft=ruby :$provisionScript = <<-SCRIPTsed -i 's#PasswordAuthentication no#PasswordAuthentication yes#g' /etc/ssh/sshd_configsystemctl restart sshdSCRIPTVagrant.configure("2") do |config| config.vm.provision "shell", inline: $provisionScript config.vm.define "centos1" do |centos1| centos1.vm.box = "centos/7" centos1.vm.network "private_network", ip: "192.168.33.10" centos1.vm.hostname = "centos1" centos1.vm.box_version = "1804.02" end config.vm.define "centos2" do |centos2| centos2.vm.box = "centos/7" ...