Skip to content

Commit 9df9be1

Browse files
chkp-itaysuchkp-avivm
authored andcommitted
VWAN | Added maintenance mode support
1 parent adc0708 commit 9df9be1

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

modules/nva_into_existing_hub/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ module "example_module" {
4343
admin-shell = "/etc/cli.sh"
4444
sic-key = "xxxxxxxxxxxx"
4545
admin_SSH_key = "ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxx imported-openssh-key"
46+
maintenance_mode_password_hash = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
47+
serial_console_password_hash = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4648
bgp-asn = "64512"
4749
custom-metrics = "yes"
4850
routing-intent-internet-traffic = "yes"
@@ -83,6 +85,8 @@ module "example_module" {
8385
| **admin_shell** | Enables to select different admin shells | string | /etc/cli.sh;<br/>/bin/bash;<br/>/bin/csh;<br/>/bin/tcsh.<br/>**Default:** "/etc/cli.sh" |
8486
| **sic-key** | The Secure Internal Communication one time secret used to set up trust between the gateway object and the management server | string | Only alphanumeric characters are allowed, and the value must be 12-30 characters long. |
8587
| **admin_SSH_key** | The public ssh key used for ssh connection to the NVA GW instances | string | ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxx generated-by-azure. |
88+
| **serial_console_password_hash** | Optional parameter, used to enable serial console connection. In R81.10 and below, the serial console password is also used as the maintenance mode password. To generate password hash use the command `openssl passwd -6 PASSWORD` on Linux.<br/>**Note:** In Azure Virtual Wan there is currently no serial console on the Network Virtual Appliance, the serial console password will be used as a maintenance mode password in R81.10 and below. | string | |
89+
| **maintenance_mode_password_hash** | Maintenance mode password hash, relevant only for R81.20 and higher versions. To generate a password hash, use the command `grub2-mkpasswd-pbkdf2` on Linux. | string | |
8690
| **bgp-asn** | The BGP autonomous system number | string | 64512.<br/>**Default:** "64512" |
8791
| **custom-metrics** | Indicates whether CloudGuard Metrics will be use for gateway monitoring | string | yes;<br/>no.<br/>**Default:** "yes" |
8892
| **routing-intent-internet-traffic** | Set routing intent policy to allow internet traffic through the new nva | string | yes;<br/>no.<br/>Please verify routing-intent is configured successfully post-deployment.<br/>**Default:** "yes" |

modules/nva_into_existing_hub/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ resource "azapi_resource" "managed-app" {
184184
sshPublicKey = {
185185
value = var.admin_SSH_key
186186
},
187+
MaintenanceModePasswordHash = {
188+
value = var.maintenance_mode_password_hash
189+
},
190+
SerialConsolePasswordHash = {
191+
value = var.serial_console_password_hash
192+
},
187193
BGP = {
188194
value = var.bgp-asn
189195
},

modules/nva_into_existing_hub/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ variable "admin_SSH_key" {
117117
default = ""
118118
}
119119

120+
variable "serial_console_password_hash" {
121+
description = "Optional parameter, used to enable serial console connection. In R81.10 and below, the serial console password is also used as the maintenance mode password."
122+
type = string
123+
}
124+
125+
variable "maintenance_mode_password_hash" {
126+
description = "Maintenance mode password hash, relevant only for R81.20 and higher versions"
127+
type = string
128+
}
129+
120130
variable "bgp-asn" {
121131
type = string
122132
default = "64512"

modules/nva_into_new_vwan/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ module "example_module" {
4646
admin-shell = "/etc/cli.sh"
4747
sic-key = "xxxxxxxxxxxx"
4848
admin_SSH_key = "ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxx imported-openssh-key"
49+
maintenance_mode_password_hash = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
50+
serial_console_password_hash = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4951
bgp-asn = "64512"
5052
custom-metrics = "yes"
5153
routing-intent-internet-traffic = "yes"
@@ -89,6 +91,8 @@ module "example_module" {
8991
| **admin_shell** | Enables to select different admin shells | string | /etc/cli.sh;<br/>/bin/bash;<br/>/bin/csh;<br/>/bin/tcsh.<br/>**Default:** "/etc/cli.sh" |
9092
| **sic-key** | The Secure Internal Communication one time secret used to set up trust between the gateway object and the management server | string | Only alphanumeric characters are allowed, and the value must be 12-30 characters long. |
9193
| **admin_SSH_key** | The public ssh key used for ssh connection to the NVA GW instances | string | ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxx generated-by-azure. |
94+
| **serial_console_password_hash** | Optional parameter, used to enable serial console connection. In R81.10 and below, the serial console password is also used as the maintenance mode password. To generate password hash use the command `openssl passwd -6 PASSWORD` on Linux.<br/>**Note:** In Azure Virtual Wan there is currently no serial console on the Network Virtual Appliance, the serial console password will be used as a maintenance mode password in R81.10 and below. | string | |
95+
| **maintenance_mode_password_hash** | Maintenance mode password hash, relevant only for R81.20 and higher versions. To generate a password hash, use the command `grub2-mkpasswd-pbkdf2` on Linux. | string | |
9296
| **bgp-asn** | The BGP autonomous system number | string | 64512.<br/>**Default:** "64512" |
9397
| **custom-metrics** | Indicates whether CloudGuard Metrics will be use for gateway monitoring | string | yes;<br/>no.<br/>**Default:** "yes" |
9498
| **routing-intent-internet-traffic** | Set routing intent policy to allow internet traffic through the new nva | string | yes;<br/>no.<br/>Please verify routing-intent is configured successfully post-deployment.<br/>**Default:** "yes" |

modules/nva_into_new_vwan/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ resource "azapi_resource" "managed-app" {
197197
sshPublicKey = {
198198
value = var.admin_SSH_key
199199
},
200+
MaintenanceModePasswordHash = {
201+
value = var.maintenance_mode_password_hash
202+
},
203+
SerialConsolePasswordHash = {
204+
value = var.serial_console_password_hash
205+
},
200206
BGP = {
201207
value = var.bgp-asn
202208
},

modules/nva_into_new_vwan/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ variable "admin_SSH_key" {
128128
default = ""
129129
}
130130

131+
variable "serial_console_password_hash" {
132+
description = "Optional parameter, used to enable serial console connection. In R81.10 and below, the serial console password is also used as the maintenance mode password."
133+
type = string
134+
}
135+
136+
variable "maintenance_mode_password_hash" {
137+
description = "Maintenance mode password hash, relevant only for R81.20 and higher versions."
138+
type = string
139+
}
140+
131141
variable "bgp-asn" {
132142
type = string
133143
default = "64512"

0 commit comments

Comments
 (0)