update: enhance Vagrant setup with new scripts for node and workstation installation, and update provisioning to target specific VMs
This commit is contained in:
parent
5f448d7fc7
commit
aa912d55df
6 changed files with 79 additions and 23 deletions
17
scripts/install_vagrant_nodes.sh
Executable file
17
scripts/install_vagrant_nodes.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
VAGRANT_DIR="$SCRIPT_DIR/../vagrant/dev/ubuntu/"
|
||||
|
||||
echo "Script directory: $SCRIPT_DIR"
|
||||
echo "Vagrant directory: $VAGRANT_DIR"
|
||||
cd "$VAGRANT_DIR" || {
|
||||
echo "Failed to change directory to Vagrant directory: $VAGRANT_DIR"
|
||||
exit 1
|
||||
}
|
||||
|
||||
vagrant up vm1 vm2 vm3
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to start Vagrant VMs. Please check your Vagrant setup."
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue