MT#6253 Sync with templates-ce/scripts/includes/deployment.sh

vseva/8067
Michael Prokop 11 years ago
parent 10e8bf74a8
commit 12b2837593

@ -619,15 +619,28 @@ set_deploy_status "settings"
echo "Deployment Settings: echo "Deployment Settings:
Install ngcp: $NGCP_INSTALLER Install ngcp: $NGCP_INSTALLER"
Installer - pro: $PRO_EDITION
Installer - ce: $CE_EDITION if "$CE_EDITION" ; then
Version: $SP_VERSION_STR echo " sip:provider: CE"
Install Hostname: $HOSTNAME elif "$PRO_EDITION" ; then
echo " sip:provider: PRO"
fi
echo "
Target disk: /dev/$DISK
Target Hostname: $TARGET_HOSTNAME
Installer version: $SP_VERSION_STR
Install NW iface: $INSTALL_DEV Install NW iface: $INSTALL_DEV
Install IP: $INSTALL_IP Install IP: $INSTALL_IP
Use DHCP in host: $DHCP
Target Hostname: $TARGET_HOSTNAME Installing in chassis? $CHASSIS
" | tee -a /tmp/installer-settings.txt
if "$PRO_EDITION" ; then
echo "
Host Role: $ROLE Host Role: $ROLE
Host Role Carrier: $CROLE Host Role Carrier: $CROLE
Profile: $PROFILE Profile: $PROFILE
@ -638,14 +651,12 @@ echo "Deployment Settings:
Ext cluster iface: $EIFACE Ext cluster iface: $EIFACE
Ext cluster IP: $EADDR Ext cluster IP: $EADDR
Multicast addr: $MCASTADDR Multicast addr: $MCASTADDR
Use DHCP in host: $DHCP
Internal NW iface: $INTERNAL_DEV Internal NW iface: $INTERNAL_DEV
Int sp1 host IP: $IP1 Int sp1 host IP: $IP1
Int sp2 host IP: $IP2 Int sp2 host IP: $IP2
Int netmask: $INTERNAL_NETMASK Int netmask: $INTERNAL_NETMASK
$CHASSIS
" | tee -a /tmp/installer-settings.txt " | tee -a /tmp/installer-settings.txt
fi
if "$INTERACTIVE" ; then if "$INTERACTIVE" ; then
echo "WARNING: Execution will override any existing data!" echo "WARNING: Execution will override any existing data!"
@ -653,7 +664,7 @@ if "$INTERACTIVE" ; then
read a read a
if [[ "$a" != "y" ]] ; then if [[ "$a" != "y" ]] ; then
echo "Exiting as requested." echo "Exiting as requested."
exit 0 exit 2
fi fi
unset a unset a
fi fi
@ -2292,6 +2303,10 @@ set_deploy_status "finished"
# defaults to 0 seconds otherwise # defaults to 0 seconds otherwise
sleep "$STATUS_WAIT" sleep "$STATUS_WAIT"
if "$INTERACTIVE" ; then
exit 0
fi
# do not prompt when running in automated mode # do not prompt when running in automated mode
if "$REBOOT" ; then if "$REBOOT" ; then
echo "Rebooting system as requested via ngcpreboot" echo "Rebooting system as requested via ngcpreboot"

Loading…
Cancel
Save