This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Vagrant Setup
Yashodhan Pise edited this page Jan 20, 2021
·
8 revisions
Follow https://www.vagrantup.com/intro/getting-started/index.html
- Create project folder:
mkdir ~/projects && cd ~/projects
- Clone git repo for cortx-prvsnr:
git clone https://github.com/Seagate/cortx-prvsnr/
cd ~/projects/cortx-prvsnr
- Add Vargrant box created for LDR-R1:
vagrant box add http://ci-storage.mero.colo.seagate.com/prvsnr/vendor/centos/vagrant.boxes/centos_7.5.1804.box --name centos_7.5.1804
The setup comes with Vagrantfile configured to create a 2 node Vagrant setup. However, due to limitation with iterations in Vagrantfile, each node needs to be initialized independently:
vagrant up srvnode-1 srvnode-2
To connect to node console over ssh:
vagrant ssh srvnode-1
vagrant ssh srvnode-2
For setting up S3Client VM node:
vagrant up s3client
To connect to node console over ssh:
vagrant ssh s3client
To synchronize code in git repo on host (~/projects/cortx-prvsnr
) and /opt/seagate/cortx/provisioner
:
vagrant rsync
To cleanup Vagrant setup with deletion of all created boxes and supported virtual hardware:
vagrant destroy -f srvnode-1 srvnode-2