Skip to content

Commit ee4e883

Browse files
feat(VSECPC-12006): Added support for R82.10 in the GCP NSI solution. (#11)
Co-authored-by: shont <shont@checkpoint.com>
1 parent b8c76b1 commit ee4e883

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/common/common/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ variable "os_version" {
88
description = "GAIA OS version"
99
default = "R8120"
1010
validation {
11-
condition = contains(["R8110", "R8120" , "R82"], var.os_version)
12-
error_message = "Allowed values for os_version are 'R8110' , 'R8120', 'R82'"
11+
condition = contains(["R8110", "R8120" , "R82", "R8210"], var.os_version)
12+
error_message = "Allowed values for os_version are 'R8110' , 'R8120', 'R82', 'R8210'"
1313
}
1414
}
1515
variable "image_name" {

modules/common/startup-script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ kernel_parameters:
2121
- fwtls_bridge_mode_inspection=1
2222
- fw_geneve_enabled=1
2323
bootcmd:
24+
%{ if os_version == "R8210" ~}
25+
- $CGEDIR/scripts/hairpin_on.sh eth1 br1
26+
%{ else ~}
2427
- echo "brctl hairpin br1 eth1 on" >> /etc/rc.local
28+
%{ endif ~}
2529
runcmd:
2630
- 'python3 /etc/cloud_config.py generatePassword=\"${generatePassword}\" allowUploadDownload=\"${allowUploadDownload}\" templateName=\"${templateName}\" templateVersion=\"${templateVersion}\" mgmtNIC="X${mgmtNIC}X" hasInternet=\"${hasInternet}\" config_url=\"${config_url}\" config_path=\"${config_path}\" installationType="X${installation_type}X" enableMonitoring=\"${enableMonitoring}\" shell=\"${shell}\" computed_sic_key=\"${computed_sic_key}\" sicKey=\"${sicKey}\" managementGUIClientNetwork=\"${managementGUIClientNetwork}\" primary_cluster_address_name=\"${primary_cluster_address_name}\" secondary_cluster_address_name=\"${secondary_cluster_address_name}\" managementNetwork=\"${managementNetwork}\" numAdditionalNICs=\"${numAdditionalNICs}\" smart1CloudToken="X${smart_1_cloud_token}X" name=\"${name}\" zone=\"${zoneConfig}\" region=\"${region}\" osVersion=\"${os_version}\" MaintenanceModePassword=\"${maintenance_mode_password_hash}\"'

0 commit comments

Comments
 (0)