add installation_type
This commit is contained in:
parent
e0b44cfe9c
commit
916f7b6db3
1 changed files with 5 additions and 4 deletions
|
@ -221,9 +221,8 @@ function prepareInstallation() {
|
||||||
INSTALLATION_DOMAIN=$(dialog --clear --title "What's the domain of this device?" --inputbox "Enter domain (leave empty for localhost)" 10 70 3>&1 1>&2 2>&3 3>&-)
|
INSTALLATION_DOMAIN=$(dialog --clear --title "What's the domain of this device?" --inputbox "Enter domain (leave empty for localhost)" 10 70 3>&1 1>&2 2>&3 3>&-)
|
||||||
[[ -z "$INSTALLATION_DOMAIN" ]] && INSTALLATION_DOMAIN="localhost"
|
[[ -z "$INSTALLATION_DOMAIN" ]] && INSTALLATION_DOMAIN="localhost"
|
||||||
|
|
||||||
# additional states
|
# installation type
|
||||||
ADDITIONAL_STATES=$(dialog --clear --title "Select additional states to execute" --checklist "available states" 10 70 3 podman "" false 3>&1 1>&2 2>&3 3>&-)
|
INSTALLATION_TYPE=$(dialog --clear --title "Choose the main installation type of this host" --radiolist "Select one" 10 70 3 gaming Game-Server false proxy Proxy-Server false 3>&1 1>&2 2>&3 3>&-)
|
||||||
IFS=' ' read -ra ADDITIONAL_STATES_ARR <<< "$ADDITIONAL_STATES"
|
|
||||||
|
|
||||||
# show summary
|
# show summary
|
||||||
summary
|
summary
|
||||||
|
@ -235,7 +234,8 @@ function prepareInstallation() {
|
||||||
function summary() {
|
function summary() {
|
||||||
dialog --stdout --clear --title "Summary" --yes-label "Confirm" --no-label "Abort" --yesno "\n
|
dialog --stdout --clear --title "Summary" --yes-label "Confirm" --no-label "Abort" --yesno "\n
|
||||||
Hostname: ${INSTALLATION_HOSTNAME}.${INSTALLATION_DOMAIN}\n
|
Hostname: ${INSTALLATION_HOSTNAME}.${INSTALLATION_DOMAIN}\n
|
||||||
Disk: $INSTALLATION_DISK
|
Type: ${INSTALLATION_TYPE}\n
|
||||||
|
Disk: ${INSTALLATION_DISK}
|
||||||
" 9 60
|
" 9 60
|
||||||
|
|
||||||
case $? in
|
case $? in
|
||||||
|
@ -405,6 +405,7 @@ ungrouped:
|
||||||
ansible_connection: local
|
ansible_connection: local
|
||||||
start_timestamp: ${START_TIMESTAMP}
|
start_timestamp: ${START_TIMESTAMP}
|
||||||
tmpfs_size: 4G
|
tmpfs_size: 4G
|
||||||
|
installation_type: ${INSTALLATION_TYPE}
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
installationSubtaskTitle "Execute Ansible playbooks"
|
installationSubtaskTitle "Execute Ansible playbooks"
|
||||||
|
|
Loading…
Reference in a new issue