Skip to content

Commit

Permalink
Azure vWAN | Added premium license support
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-yairra authored Jun 5, 2024
1 parent 4b3d6d6 commit d7dc596
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
5 changes: 5 additions & 0 deletions azure/templates/vwan-managed-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ For Full Package (NGTX + S1C) license:
https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSkus/checkpoint-ngtx?api-version=2023-05-01
```

For Full Package Premium (NGTX + S1C++) license:
```
https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSkus/checkpoint-premium?api-version=2023-05-01
```


## Output example:
```
Expand Down
7 changes: 4 additions & 3 deletions azure/templates/vwan-managed-app/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
"defaultValue": "Security Enforcement (NGTP)",
"allowedValues": [
"Security Enforcement (NGTP)",
"Full Package (NGTX + S1C)"
"Full Package (NGTX + S1C)",
"Full Package Premium (NGTX + S1C++)"
],
"type": "String",
"metadata": {
"description": "License type of Check Point CloudGuard"
}
},
"imageVersion": {
"defaultValue": "8120.900631.1522",
"defaultValue": "8120.900631.1594",
"type": "String",
"metadata": {
"description": "The image version that will be used to deploy the solution. To get the image version, make API call to https://management.azure.com/subscriptions/{subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSkus/checkpoint?api-version=2023-05-01"
Expand Down Expand Up @@ -199,7 +200,7 @@
"name": "vwan-app",
"product": "cp-vwan-managed-app",
"publisher": "checkpoint",
"version": "1.0.13"
"version": "1.0.14"
},
"properties": {
"managedResourceGroupId": "[variables('managedResourceGroupId')]",
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/nva-into-existing-hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ please see the [CloudGuard Network for Azure Virtual WAN Deployment Guide](https
| | | | | |
| **os-version** | The GAIA os version | string | "R8110" <br/> "R8120" |
| | | | | |
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)" <br/> "Full Package (NGTX + S1C)" |
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)" <br/> "Full Package (NGTX + S1C)" <br/> "Full Package Premium (NGTX + S1C++)" |
| | | | | | | | | |
| **scale-unit** | The scale unit determines the size and number of resources deployed. The higher the scale unit, the greater the amount of traffic that can be handled. | string | "2"<br/>"4"<br/>"10"<br/>"20"<br/>"30"<br/>"60"<br/>"80"<br/> |
| | | | | |
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/nva-into-existing-hub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ locals {

data "http" "image-versions" {
method = "GET"
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX + S1C)" ? "-ngtx" : ""}?api-version=2020-05-01"
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX + S1C)" ? "-ngtx" : var.license-type == "Full Package Premium (NGTX + S1C++)" ? "-premium" : ""}?api-version=2020-05-01"
request_headers = {
Accept = "application/json"
"Authorization" = "Bearer ${local.access_token}"
Expand Down Expand Up @@ -105,7 +105,7 @@ resource "azurerm_managed_application" "nva" {
name = "vwan-app"
product = "cp-vwan-managed-app"
publisher = "checkpoint"
version = "1.0.13"
version = "1.0.14"
}
parameter_values = jsonencode({
location = {
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/nva-into-existing-hub/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ variable "license-type" {
type = string
default = "Security Enforcement (NGTP)"
validation {
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)"], var.license-type)
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)','Full Package (NGTX + S1C)'"
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)", "Full Package Premium (NGTX + S1C++)"], var.license-type)
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX + S1C)', 'Full Package Premium (NGTX + S1C++)'"
}
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/nva-into-new-vwan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ please see the [CloudGuard Network for Azure Virtual WAN Deployment Guide](https
| | | | | |
| **os-version** | The GAIA os version | string | "R8110" <br/> "R8120" |
| | | | | |
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)" <br/> "Full Package (NGTX + S1C)" |
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)" <br/> "Full Package (NGTX + S1C)" <br/> "Full Package Premium (NGTX + S1C++)" |
| | | | | |
| **scale-unit** | The scale unit determines the size and number of resources deployed. The higher the scale unit, the greater the amount of traffic that can be handled. | string | "2"<br/>"4"<br/>"10"<br/>"20"<br/>"30"<br/>"60"<br/>"80"<br/> |
| | | | | |
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/nva-into-new-vwan/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ locals {

data "http" "image-versions" {
method = "GET"
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX + S1C)" ? "-ngtx" : ""}?api-version=2020-05-01"
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX + S1C)" ? "-ngtx" : var.license-type == "Full Package Premium (NGTX + S1C++)" ? "-premium" : ""}?api-version=2020-05-01"
request_headers = {
Accept = "application/json"
"Authorization" = "Bearer ${local.access_token}"
Expand Down Expand Up @@ -115,7 +115,7 @@ resource "azurerm_managed_application" "nva" {
name = "vwan-app"
product = "cp-vwan-managed-app"
publisher = "checkpoint"
version = "1.0.13"
version = "1.0.14"
}
parameter_values = jsonencode({
location = {
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/nva-into-new-vwan/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ variable "license-type" {
type = string
default = "Security Enforcement (NGTP)"
validation {
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)"], var.license-type)
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)','Full Package (NGTX + S1C)'"
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)", "Full Package Premium (NGTX + S1C++)"], var.license-type)
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX + S1C)', 'Full Package Premium (NGTX + S1C++)'"
}
}

Expand Down

0 comments on commit d7dc596

Please sign in to comment.