diff --git a/Vagrantfile b/Vagrantfile index 3c73ae5..09cdb0c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -13,6 +13,7 @@ Vagrant.configure("2") do |config| systemctl enable --now httpd echo "vm1" > /etc/hostname hostname -F /etc/hostname + echo "192.168.56.2 vm1" >> /etc/hosts SHELL end @@ -29,6 +30,7 @@ Vagrant.configure("2") do |config| systemctl enable --now httpd echo "vm2" > /etc/hostname hostname -F /etc/hostname + echo "192.168.56.3 vm2" >> /etc/hosts SHELL end @@ -45,6 +47,7 @@ Vagrant.configure("2") do |config| apt-get clean echo "vm3" > /etc/hostname hostname -F /etc/hostname + echo "192.168.56.4 vm3" >> /etc/hosts SHELL end @@ -61,6 +64,7 @@ Vagrant.configure("2") do |config| apt-get install mc apache2 -y echo "vm4" > /etc/hostname hostname -F /etc/hostname + echo "192.168.56.5 vm4" >> /etc/hosts SHELL end @@ -77,6 +81,7 @@ Vagrant.configure("2") do |config| systemctl enable --now httpd echo "zbxsrv" > /etc/hostname hostname -F /etc/hostname + echo "192.168.56.6 zbxsrv" >> /etc/hosts SHELL end