diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/Vagrantfile b/itacademy/LinuxEssBash/virtual_lab/nfs/Vagrantfile new file mode 100644 index 0000000..0cc2329 --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/Vagrantfile @@ -0,0 +1,15 @@ +Vagrant.configure("2") do |config| + config.vm.box = "centos/8_1" + config.vm.define "server" do |server| + server.vm.host_name = 'server' + server.vm.network :private_network, ip: "10.0.0.10" + server.vm.provision "shell", path: "deploy.sh" + end + + config.vm.define "client" do |client| + client.vm.host_name = 'client' + client.vm.network :private_network, ip: "10.0.0.11" + client.vm.provision "shell", path: "deploycli.sh" + end +end + diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/deploy.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/deploy.sh new file mode 100755 index 0000000..8e6cfd5 --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +/vagrant/nfs.sh +/vagrant/smb.sh diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/deploycli.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/deploycli.sh new file mode 100755 index 0000000..49330ac --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/deploycli.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +/vagrant/nfscli.sh +/vagrant/smbcli.sh diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/nfs.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/nfs.sh new file mode 100755 index 0000000..0a5be7b --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/nfs.sh @@ -0,0 +1,3 @@ +yum install nfs-utils rpcbind -y +setenforce 0 +systemctl enable --now nfs-server diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/nfscli.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/nfscli.sh new file mode 100755 index 0000000..d0cf133 --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/nfscli.sh @@ -0,0 +1,2 @@ +yum install fio nfs-utils -y +setenforce 0 diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/smb.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/smb.sh new file mode 100755 index 0000000..d575d6b --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/smb.sh @@ -0,0 +1 @@ +yum install samba -y diff --git a/itacademy/LinuxEssBash/virtual_lab/nfs/smbcli.sh b/itacademy/LinuxEssBash/virtual_lab/nfs/smbcli.sh new file mode 100755 index 0000000..d4541d9 --- /dev/null +++ b/itacademy/LinuxEssBash/virtual_lab/nfs/smbcli.sh @@ -0,0 +1 @@ +yum install -y samba-client