Skip to content

Commit

Permalink
NFS stand
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikentsi Lapa committed Mar 30, 2020
1 parent 27a86d2 commit fa3cbf9
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/Vagrantfile
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

/vagrant/nfs.sh
/vagrant/smb.sh
4 changes: 4 additions & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/deploycli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

/vagrant/nfscli.sh
/vagrant/smbcli.sh
3 changes: 3 additions & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/nfs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yum install nfs-utils rpcbind -y
setenforce 0
systemctl enable --now nfs-server
2 changes: 2 additions & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/nfscli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yum install fio nfs-utils -y
setenforce 0
1 change: 1 addition & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/smb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yum install samba -y
1 change: 1 addition & 0 deletions itacademy/LinuxEssBash/virtual_lab/nfs/smbcli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yum install -y samba-client

0 comments on commit fa3cbf9

Please sign in to comment.