File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg &&
2+ 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 &&
3+ sudo apt-get update && sudo apt install vagrant
Original file line number Diff line number Diff line change 1+ sudo apt-get install virtualbox
Original file line number Diff line number Diff line change 44
55function usage(){
66
7- cat << EOF
7+ cat << EOF
88
99Usage: $( basename " $0 " ) [options] <argument>
1010
8585fi
8686
8787# # install required collections
88+ #! /bin/bash
89+
90+ # Check if Vagrant is installed
91+ if command -v vagrant & > /dev/null
92+ then
93+ echo " Vagrant is installed"
94+ vagrant --version
95+ else
96+ sh scripts/install_vagrant.sh
97+ fi
98+ # install virtualbox
99+ sh scripts/install_virtual_box.sh
100+
88101ansible-galaxy collection install -r requirements.yml
89102
90- # # provision the server
103+ # provision the server
91104if [ -z " $STACK_SERVER " ]; then
92105 lint_vagrant
93106 vagrant up
You can’t perform that action at this time.
0 commit comments