Skip to content

Commit 67ca945

Browse files
Adding modules for Azure Check Point deployments (#8)
Co-authored-by: guybarak <guybarak@checkpoint.com>
1 parent 3d997d3 commit 67ca945

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7019
-89
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto eol=lf
2+
*.tf text eol=lf
3+
*.sh text eol=lf
4+
*.yml text eol=lf
5+
*.yaml text eol=lf
6+
*.json text eol=lf
7+
*.md text eol=lf

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@ This repository provides a structured set of Terraform modules for deploying Che
1818

1919

2020
**Submodules:**
21-
22-
* [`management_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/management_new_vnet) - Deploys CloudGuard Management solution into a new VNet.
23-
21+
* [`high_availability_existing_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/high_availability_existing_vnet) - Deploys CloudGuard High Availability solution into an existing VNet in azure.
22+
* [`high_availability_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/high_availability_new_vnet) Deploys CloudGuard High Availability solution into a new VNet.
23+
* [`management_existing_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/management_existing_vnet) - Deploys CloudGuard Management solution into an existing VNet.
24+
* [`management_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/management_new_vnet) - Deploys CloudGuard Management solution into a new VNet
25+
* [`mds_existing_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/mds_existing_vnet) - Deploys CloudGuard Management solution into a new VNet.
26+
* [`mds_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/mds_new_vnet) - Deploys CloudGuard Management solution into a new VNet.
27+
* [`nva_into_existing_hub`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/nva_into_existing_hub) - Deploys CloudGuard Virtual WAN NVA solution into an existing vWAN Hub.
28+
* [`nva_into_new_vwan`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/nva_into_new_vwan) - Deploys CloudGuard Virtual WAN NVA solution into a new vWAN Hub.
29+
* [`single_gateway_existing_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/single_gateway_existing_vnet) - Deploys CloudGuard Single Gateway solution into an existing VNet.
2430
* [`single_gateway_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/single_gateway_new_vnet) - Deploys CloudGuard Single Gateway solution into a new VNet.
25-
31+
* [`vmss_existing_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/vmss_existing_vnet) - Deploys CloudGuard VMSS solution into an existing VNet.
2632
* [`vmss_new_vnet`](https://registry.terraform.io/modules/CheckPointSW/cloudguard-network-security/azure/latest/submodules/vmss_new_vnet) - Deploys CloudGuard VMSS solution into a new VNet.
2733

2834
Internal Submodules -

modules/common/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ output "vm_instance_identity" {
2626
value = var.vm_instance_identity_type
2727
}
2828

29-
output "template_name"{
30-
value = var.template_name
29+
output "module_name"{
30+
value = var.module_name
3131
}
3232

3333
output "module_version" {

modules/common/variables.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ variable "vm_instance_identity_type" {
113113
default = "SystemAssigned"
114114
}
115115

116-
variable "template_name"{
116+
variable "module_name"{
117117
description = "Template name. Should be defined according to deployment type(ha, vmss)"
118118
type = string
119119
}
@@ -216,13 +216,12 @@ variable "publisher" {
216216

217217
//************** Storage image reference and plan variables ****************//
218218
variable "vm_os_offer" {
219-
description = "The name of the image offer to be deployed.Choose from: check-point-cg-r81, check-point-cg-r8110, check-point-cg-r8120, check-point-cg-r82"
219+
description = "The name of the image offer to be deployed.Choose from: check-point-cg-r8110, check-point-cg-r8120, check-point-cg-r82"
220220
type = string
221221
}
222222

223223
locals { // locals for 'vm_os_offer' allowed values
224224
vm_os_offer_allowed_values = [
225-
"check-point-cg-r81",
226225
"check-point-cg-r8110",
227226
"check-point-cg-r8120",
228227
"check-point-cg-r82"

modules/high_availability_existing_vnet/README.md

Lines changed: 130 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/python3 /etc/cloud_config.py
2+
3+
installationType="${installation_type}"
4+
allowUploadDownload="${allow_upload_download}"
5+
osVersion="${os_version}"
6+
templateName="${module_name}"
7+
templateVersion="${module_version}"
8+
templateType="${template_type}"
9+
isBlink="${is_blink}"
10+
bootstrapScript64="${bootstrap_script64}"
11+
location="${location}"
12+
sicKey="${sic_key}"
13+
tenantId="${tenant_id}"
14+
virtualNetwork="${virtual_network}"
15+
clusterName="${cluster_name}"
16+
externalPrivateAddresses="${external_private_addresses}"
17+
customMetrics="${enable_custom_metrics}"
18+
adminShell="${admin_shell}"
19+
smart1CloudToken="${smart_1_cloud_token}"
20+
Vips='[{"name": "cluster-vip", "privateIPAddress": "${external_private_addresses}", "publicIPAddress": "${cluster_name}"}]'
21+
passwordHash="${serial_console_password_hash}"
22+
MaintenanceModePassword="${maintenance_mode_password_hash}"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
locals {
2+
module_name = "high_availability"
3+
module_version = "1.0.4"
4+
}

0 commit comments

Comments
 (0)