From 9912711ec11019e62005d40a14d1a39fd8585792 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 9 May 2019 17:57:44 -0400 Subject: [PATCH] ./install-support now prompts for openvpn_handle --- install-support | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/install-support b/install-support index 24785214a..dea25ddfb 100755 --- a/install-support +++ b/install-support @@ -12,7 +12,16 @@ if [ ! -f $PLAYBOOK ]; then exit 1 fi -sed -i -e "s/openvpn_install: False/openvpn_install: True/" /etc/iiab/local_vars.yml -sed -i -e "s/openvpn_enabled: False/openvpn_enabled: True/" /etc/iiab/local_vars.yml +echo -en "\nWhat OpenVPN machine name do you want? " +read ans < /dev/tty +if [ "$ans" != "" ]; then + sed -i -e "s/^openvpn_handle:.*/openvpn_handle: $ans/" /etc/iiab/local_vars.yml + echo -e "\nYour machine's openvpn_handle will now be set... \n" +else + echo -e "\nWARNING: your machine's openvpn_handle will remain unchanged...\n" +fi + +sed -i -e "s/^openvpn_install:.*/openvpn_install: True/" /etc/iiab/local_vars.yml +sed -i -e "s/^openvpn_enabled:.*/openvpn_enabled: True/" /etc/iiab/local_vars.yml ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local