Skip to content

Commit 839b917

Browse files
VWAN | Updated licenses types (#12)
Co-authored-by: natanelm <[email protected]>
1 parent bfa9756 commit 839b917

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

modules/nva_into_existing_hub/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ module "example_module" {
7676
| **managed-app-name** | The name of the managed application that will be created | string | The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.<br/>**Default:** "tf-vwan-managed-app-nva" |
7777
| **nva-name** | The name of the NVA that will be created | string | The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.<br/>**Default:** "tf-vwan-nva" |
7878
| **nva-rg-name** | The name of the resource group that will contain the NVA | string | Resource group names only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period.<br/>**Default:** "tf-vwan-nva-rg" |
79-
| **os-version** | The GAIA os version | string | "R8110";<br/>"R8120";<br/>"R82".<br/>**Default:** "R8120" |
80-
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)";<br/>"Full Package (NGTX + S1C)";<br/>"Full Package Premium (NGTX + S1C++)".<br/>**Default:** "Security Enforcement (NGTP)" |
79+
| **os-version** | The GAIA os version | string | "R8110";<br/>"R8120";<br/>"R82";<br/>**Default:** "R8120" |
80+
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)";<br/>"Full Package (NGTX and Smart1-Cloud)";<br/>"Full Package Premium (NGTX and Smart1-Cloud Premium)".<br/>**Default:** "Security Enforcement (NGTP)" |
8181
| **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/>**Default:** "2" |
8282
| **bootstrap_script** | An optional script to run on the initial boot | string | Bootstrap script example:<br/>"touch /home/admin/bootstrap.txt; echo 'hello_world' > /home/admin/bootstrap.txt".<br/>The script will create bootstrap.txt file in the /home/admin/ and add 'hello word' string into it.<br/>**Default:** "" |
8383
| **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" |

modules/nva_into_existing_hub/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ locals {
3232

3333
data "http" "image-versions" {
3434
method = "GET"
35-
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"
35+
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX and Smart1-Cloud)" ? "-ngtx" : var.license-type == "Full Package Premium (NGTX and Smart1-Cloud Premium)" ? "-premium" : ""}?api-version=2020-05-01"
3636
request_headers = {
3737
Accept = "application/json"
3838
"Authorization" = "Bearer ${local.access_token}"

modules/nva_into_existing_hub/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ variable "license-type" {
7474
type = string
7575
default = "Security Enforcement (NGTP)"
7676
validation {
77-
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)", "Full Package Premium (NGTX + S1C++)"], var.license-type)
78-
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX + S1C)', 'Full Package Premium (NGTX + S1C++)'"
77+
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX and Smart1-Cloud)", "Full Package Premium (NGTX and Smart1-Cloud Premium)"], var.license-type)
78+
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX and Smart1-Cloud)', 'Full Package Premium (NGTX and Smart1-Cloud Premium)'"
7979
}
8080
}
8181

modules/nva_into_new_vwan/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ module "example_module" {
8282
| **managed-app-name** | The name of the managed application that will be created | string | The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.<br/>**Default:** tf-vwan-managed-app |
8383
| **nva-name** | The name of the NVA that will be created | string | The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.<br/>**Default:** tf-vwan-nva |
8484
| **nva-rg-name** | The name of the resource group that will contain the NVA | string | Resource group names only allow alphanumeric characters, periods, underscores, hyphens and parenthesis and cannot end in a period.<br/>**Default:** tf-vwan-nva-rg |
85-
| **os-version** | The GAIA os version | string | "R8110";<br/>"R8120";<br/>"R82".<br/>**Default:** "R8120" |
86-
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)";<br/>"Full Package (NGTX + S1C)";<br/>"Full Package Premium (NGTX + S1C++)".<br/>**Default:** "Security Enforcement (NGTP)" |
85+
| **os-version** | The GAIA os version | string | "R8110";<br/>"R8120";<br/>"R82";<br/>**Default:** "R8120" |
86+
| **license-type** | The Check Point licence type | string | "Security Enforcement (NGTP)";<br/>"Full Package (NGTX and Smart1-Cloud)";<br/>"Full Package Premium (NGTX and Smart1-Cloud Premium)".<br/>**Default:** "Security Enforcement (NGTP)" |
8787
| **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/>**Default:** "2" |
8888
| **bootstrap_script** | An optional script to run on the initial boot | string | Bootstrap script example:<br/>"touch /home/admin/bootstrap.txt; echo 'hello_world' > /home/admin/bootstrap.txt".<br/>The script will create bootstrap.txt file in the /home/admin/ and add 'hello word' string into it.<br/>**Default:** "" |
8989
| **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" |

modules/nva_into_new_vwan/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ locals {
4141

4242
data "http" "image-versions" {
4343
method = "GET"
44-
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"
44+
url = "https://management.azure.com/subscriptions/${var.subscription_id}/providers/Microsoft.Network/networkVirtualApplianceSKUs/checkpoint${var.license-type == "Full Package (NGTX and Smart1-Cloud)" ? "-ngtx" : var.license-type == "Full Package Premium (NGTX and Smart1-Cloud Premium)" ? "-premium" : ""}?api-version=2020-05-01"
4545
request_headers = {
4646
Accept = "application/json"
4747
"Authorization" = "Bearer ${local.access_token}"

modules/nva_into_new_vwan/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ variable "license-type" {
8585
type = string
8686
default = "Security Enforcement (NGTP)"
8787
validation {
88-
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX + S1C)", "Full Package Premium (NGTX + S1C++)"], var.license-type)
89-
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX + S1C)', 'Full Package Premium (NGTX + S1C++)'"
88+
condition = contains(["Security Enforcement (NGTP)", "Full Package (NGTX and Smart1-Cloud)", "Full Package Premium (NGTX and Smart1-Cloud Premium)"], var.license-type)
89+
error_message = "Allowed values for License Type are 'Security Enforcement (NGTP)', 'Full Package (NGTX and Smart1-Cloud)', 'Full Package Premium (NGTX and Smart1-Cloud Premium)'"
9090
}
9191
}
9292

0 commit comments

Comments
 (0)