update: add installation scripts for Vagrant and Ansible, enhance k3s setup, and improve provisioning process
This commit is contained in:
parent
ff55197c58
commit
514e05a1f6
5 changed files with 103 additions and 22 deletions
20
scripts/install_vagrant_k3s.sh
Executable file
20
scripts/install_vagrant_k3s.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
||||
|
||||
../../../scripts/configure_vagrant_k3s.sh && \
|
||||
vagrant up workstation
|
||||
Loading…
Add table
Add a link
Reference in a new issue