Skip to content

Commit

Permalink
Merge pull request #66 from abolfazl8131/dev/version1
Browse files Browse the repository at this point in the history
Dev/version1
  • Loading branch information
Shayan-Ghani authored Oct 20, 2024
2 parents 8062cc7 + 9fa5f67 commit 3542448
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
Binary file added g
Binary file not shown.
3 changes: 3 additions & 0 deletions scripts/install_vagrant.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg &&
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list &&
sudo apt-get update && sudo apt install vagrant
1 change: 1 addition & 0 deletions scripts/install_virtual_box.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo apt-get install virtualbox
17 changes: 15 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

function usage(){

cat <<EOF
cat <<EOF
Usage: $(basename "$0") [options] <argument>
Expand Down Expand Up @@ -85,9 +85,22 @@ else
fi

## install required collections
#!/bin/bash

# Check if Vagrant is installed
if command -v vagrant &> /dev/null
then
echo "Vagrant is installed"
vagrant --version
else
sh scripts/install_vagrant.sh
fi
#install virtualbox
sh scripts/install_virtual_box.sh

ansible-galaxy collection install -r requirements.yml

## provision the server
# provision the server
if [ -z "$STACK_SERVER"]; then
lint_vagrant
vagrant up
Expand Down

0 comments on commit 3542448

Please sign in to comment.