Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 28cb8a1

Browse files
authored
Resource Plan ID wasn't being written to the config file (#157)
* fixed the script so it writes the inputted plan id to the script, also hardcoded the resource plan id to be entry instead of lite in anticipation of THINK 21 * removing the debugging lines added * added a little more info on the different resource plan id choices * fixed a mis-spelling of provision, its been bothering me
1 parent fc378c1 commit 28cb8a1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

automation/DeployToHPVS.bashlib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,11 @@ write_debug(){
234234
#
235235
change_config_var(){
236236

237+
#echo "${1} ${2} ${3}"
237238
# Escape forward slashes so they don't foul up sed
238239
escaped=$(echo "${3}" | sed -e 's/\//\\&/g')
239240

241+
240242
#echo run_command "sed -i '' 's/^"${2}"\=.*$/"${2}"\="${escaped}"/' "${1}
241243
TYPE=$(uname -s)
242244
if [[ $TYPE == "Darwin" ]]; then
@@ -539,7 +541,7 @@ config_file_wizard(){
539541
else
540542
prompt_user "Enter target namespace" true "${dockerUser}"
541543
fi
542-
change_config_var ${1} "namespace" "${USERINPUT}"
544+
change_config_var ${1} "namespace" "${USERINPUT}"
543545

544546
#--------------------------------------------------------------------------#
545547
# Config variable: DCTServer #

automation/DeployToHPVS.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,9 @@ hpvsName=fhetoolkit-s390x-sample
168168
# so you will have to issue the above command from a Linux or Mac system with
169169
# the IBM Cloud CLI installed.
170170
#
171+
# Lite-S plan
172+
# Note: Use this plan when your ibmcloud account Hyper Protect Virtual Server Deployment is on the Free Plan
171173
#resource_plan_id=bb0005a1-ec13-4ee4-86f4-0c3b15a357d5
174+
# Entry Plan
175+
# Use this plan when your ibmcloud account Hyper Protect Virtual Server Deployment is on the Paid (Low tier) Entry Plan
176+
resource_plan_id=dd43716a-8403-4e9a-a99e-5028a75fa98b

automation/DeployToHPVS.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ if [[ -z $resource_plan_id ]] || [[ "$resource_plan_id" == "" ]]; then
368368
fi
369369

370370
# Provision our new HPVS instance
371-
echo "Provisiton instance"
371+
echo "Provisioning the instance, this will take a few moments..."
372372
#provision_hpvs_instance $registrationFile $hpvsName $location $resource_group $resource_plan_id $tag
373373
#instanceID=12345
374374
instanceID=$(provision_hpvs_instance $registrationFile $hpvsName $location $resource_group $resource_plan_id $tag)

0 commit comments

Comments
 (0)