Skip to content

Commit 2c83279

Browse files
authored
Merge pull request #361 from chkp-meravbe/mb-versions
AWS | TF | Remove R80.40 and R81 versions from qs-autoscale
2 parents 412eb56 + 7b3a9ca commit 2c83279

File tree

8 files changed

+58
-58
lines changed

8 files changed

+58
-58
lines changed

terraform/aws/qs-autoscale-master/README.md

+8-7
Large diffs are not rendered by default.

terraform/aws/qs-autoscale-master/terraform.tfvars

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ gateways_min_group_size = 2
3535
gateways_max_group_size = 8
3636
gateway_version = "R81.20-BYOL"
3737
gateway_password_hash = ""
38-
gateway_maintenance_mode_password_hash = "" # For R81.10 and below the gateway_password_hash is used also as maintenance-mode password.
38+
gateway_maintenance_mode_password_hash = "" # For R81.10 the gateway_password_hash is used also as maintenance-mode password.
3939
gateway_SICKey = "12345678"
4040
enable_cloudwatch = true
4141

@@ -44,7 +44,7 @@ management_deploy = true
4444
management_instance_type = "m5.xlarge"
4545
management_version = "R81.20-BYOL"
4646
management_password_hash = ""
47-
management_maintenance_mode_password_hash = "" # For R81.10 and below the management_password_hash is used also as maintenance-mode password.
47+
management_maintenance_mode_password_hash = "" # For R81.10 the management_password_hash is used also as maintenance-mode password.
4848
gateways_policy = "Standard"
4949
gateways_blades = true
5050
admin_cidr = "0.0.0.0/0"

terraform/aws/qs-autoscale-master/variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ variable "gateway_password_hash" {
141141
default = ""
142142
}
143143
variable "gateway_maintenance_mode_password_hash" {
144-
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 and below the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
144+
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
145145
type = string
146146
default = ""
147147
}
@@ -189,7 +189,7 @@ variable "management_password_hash" {
189189
default = ""
190190
}
191191
variable "management_maintenance_mode_password_hash" {
192-
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 and below the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
192+
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
193193
type = string
194194
default = ""
195195
}

terraform/aws/qs-autoscale/README.md

+40-39
Large diffs are not rendered by default.

terraform/aws/qs-autoscale/locals.tf

-2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ locals {
6868
encrypted_protocol_condition = (local.alb_condition && var.load_balancer_protocol == "HTTPS") || (local.nlb_condition && var.load_balancer_protocol == "TLS") ? true : false
6969
deploy_management_condition = var.management_deploy == true
7070
deploy_servers_condition = var.servers_deploy == true
71-
r81_below_gw_versions = ["R80.40-BYOL", "R80.40-PAYG-NGTP", "R80.40-PAYG-NGTX", "R81-BYOL", "R81-PAYG-NGTP", "R81-PAYG-NGTX"]
72-
is_gw_version_r81_below = contains(local.r81_below_gw_versions, var.gateway_version)
7371
}

terraform/aws/qs-autoscale/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module "external_load_balancer" {
3737
target_group_port = local.encrypted_protocol_condition ? 9443 : 9080
3838
listener_port = local.provided_port_condition ? var.service_port : local.encrypted_protocol_condition ? "443" : "80"
3939
certificate_arn = local.encrypted_protocol_condition ? var.certificate : ""
40-
health_check_port = var.load_balancers_type == "Network Load Balancer" && !local.is_gw_version_r81_below ? 8117 : null
41-
health_check_protocol = var.load_balancers_type == "Network Load Balancer" && !local.is_gw_version_r81_below ? "TCP" : null
40+
health_check_port = var.load_balancers_type == "Network Load Balancer" ? 8117 : null
41+
health_check_protocol = var.load_balancers_type == "Network Load Balancer" ? "TCP" : null
4242
}
4343

4444
module "autoscale" {

terraform/aws/qs-autoscale/terraform.tfvars

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gateways_min_group_size = 2
2525
gateways_max_group_size = 8
2626
gateway_version = "R81.20-BYOL"
2727
gateway_password_hash = ""
28-
gateway_maintenance_mode_password_hash = "" # For R81.10 and below the gateway_password_hash is used also as maintenance-mode password.
28+
gateway_maintenance_mode_password_hash = "" # For R81.10 the gateway_password_hash is used also as maintenance-mode password.
2929
gateway_SICKey = "12345678"
3030
enable_cloudwatch = true
3131

@@ -34,7 +34,7 @@ management_deploy = true
3434
management_instance_type = "m5.xlarge"
3535
management_version = "R81.20-BYOL"
3636
management_password_hash = ""
37-
management_maintenance_mode_password_hash = "" # For R81.10 and below the management_password_hash is used also as maintenance-mode password.
37+
management_maintenance_mode_password_hash = "" # For R81.10 the management_password_hash is used also as maintenance-mode password.
3838
gateways_policy = "Standard"
3939
gateways_blades = true
4040
admin_cidr = "0.0.0.0/0"

terraform/aws/qs-autoscale/variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ variable "gateway_password_hash" {
128128
default = ""
129129
}
130130
variable "gateway_maintenance_mode_password_hash" {
131-
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 and below the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
131+
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
132132
type = string
133133
default = ""
134134
}
@@ -176,7 +176,7 @@ variable "management_password_hash" {
176176
default = ""
177177
}
178178
variable "management_maintenance_mode_password_hash" {
179-
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 and below the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
179+
description = "(optional) Check Point recommends setting Admin user's password and maintenance-mode password for recovery purposes. For R81.10 the Admin user's password is used also as maintenance-mode password. (To generate a password hash use the command 'grub2-mkpasswd-pbkdf2' on Linux and paste it here)."
180180
type = string
181181
default = ""
182182
}

0 commit comments

Comments
 (0)