Add Makefile, roles_path, and SSH tunnel variable

This commit is contained in:
Kris Lamoureux 2023-09-26 21:14:06 -04:00
parent 8fed63792b
commit 2e02efcbb7
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 12 additions and 1 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
.PHONY: clean install
all: install
install:
vagrant up --no-destroy-on-error
sudo ./forward-ssh.sh
clean:
vagrant destroy -f && rm -rf .vagrant

View File

@ -1,6 +1,7 @@
[defaults] [defaults]
inventory = ./environments/development inventory = ./environments/development
interpreter_python = /usr/bin/python3 interpreter_python = /usr/bin/python3
roles_path = ./roles
[connection] [connection]
pipelining = true pipelining = true

View File

@ -17,7 +17,7 @@ unset PKILL_ANSWER
# Function to create the SSH tunnel # Function to create the SSH tunnel
function ssh_connect { function ssh_connect {
read -rp "Start a new vagrant SSH tunnel? [y/N]" read -rp "Start a new vagrant SSH tunnel? [y/N] " PSTART_ANSWER
echo echo
case "$PSTART_ANSWER" in case "$PSTART_ANSWER" in
[yY]) [yY])