Skip to content

Commit

Permalink
fixing 7.6.1 config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fshuva committed Dec 12, 2024
1 parent b32f669 commit 8bd1aad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ data "ibm_is_ssh_key" "ssh_key" {
name = var.SSH_PUBLIC_KEY
}

// HA Password
resource "random_string" "ha_password" {
length = 8
special = false
}

resource "ibm_is_volume" "logDisk1" {
// Name must be lower case
name = "${var.CLUSTER_NAME}-logdisk1-${random_string.random_suffix.result}"
Expand Down Expand Up @@ -173,6 +179,7 @@ data "template_file" "userdata_active" {
ibm_api_key = var.IBMCLOUD_API_KEY
region = var.IBMREGION[var.REGION]
fgt1_port_4_mgmt_gateway = var.FGT1_PORT4_MGMT_GATEWAY
ha_password = random_string.ha_password.result

}
}
Expand All @@ -195,5 +202,7 @@ data "template_file" "userdata_passive" {
ibm_api_key = var.IBMCLOUD_API_KEY
region = var.IBMREGION[var.REGION]
fgt2_port_4_mgmt_gateway = var.FGT2_PORT4_MGMT_GATEWAY
ha_password = random_string.ha_password.result

}
}
2 changes: 1 addition & 1 deletion user_data_active.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ set mode a-p
set hbdev "port3" 100
set session-pickup enable
set ha-mgmt-status enable
set password ${ha_password}
config ha-mgmt-interfaces
edit 1
set interface "port4"
Expand All @@ -50,7 +51,6 @@ set status enable
set ha-status enable
set type ibm
set api-key ${ibm_api_key}
set compute-generation 2
set ibm-region ${region}
set update-interval 60
next
Expand Down
2 changes: 1 addition & 1 deletion user_data_passive.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ set mode a-p
set hbdev "port3" 100
set session-pickup enable
set ha-mgmt-status enable
set password ${ha_password}
config ha-mgmt-interfaces
edit 1
set interface "port4"
Expand All @@ -50,7 +51,6 @@ set status enable
set ha-status enable
set type ibm
set api-key ${ibm_api_key}
set compute-generation 2
set ibm-region ${region}
set update-interval 60
next
Expand Down

0 comments on commit 8bd1aad

Please sign in to comment.