Skip to content

Adding modules for Azure Check Point deployments #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto eol=lf
*.tf text eol=lf
*.sh text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.md text eol=lf
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ This repository provides a structured set of Terraform modules for deploying Che


**Submodules:**

* [`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.

* [`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.
* [`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.
* [`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.
* [`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
* [`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.
* [`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.
* [`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.
* [`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.
* [`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.
* [`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.

* [`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.
* [`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.

Internal Submodules -
Expand Down
4 changes: 2 additions & 2 deletions modules/common/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ output "vm_instance_identity" {
value = var.vm_instance_identity_type
}

output "template_name"{
value = var.template_name
output "module_name"{
value = var.module_name
}

output "module_version" {
Expand Down
5 changes: 2 additions & 3 deletions modules/common/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ variable "vm_instance_identity_type" {
default = "SystemAssigned"
}

variable "template_name"{
variable "module_name"{
description = "Template name. Should be defined according to deployment type(ha, vmss)"
type = string
}
Expand Down Expand Up @@ -216,13 +216,12 @@ variable "publisher" {

//************** Storage image reference and plan variables ****************//
variable "vm_os_offer" {
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"
description = "The name of the image offer to be deployed.Choose from: check-point-cg-r8110, check-point-cg-r8120, check-point-cg-r82"
type = string
}

locals { // locals for 'vm_os_offer' allowed values
vm_os_offer_allowed_values = [
"check-point-cg-r81",
"check-point-cg-r8110",
"check-point-cg-r8120",
"check-point-cg-r82"
Expand Down
130 changes: 130 additions & 0 deletions modules/high_availability_existing_vnet/README.md

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions modules/high_availability_existing_vnet/cloud-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python3 /etc/cloud_config.py

installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${module_name}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
bootstrapScript64="${bootstrap_script64}"
location="${location}"
sicKey="${sic_key}"
tenantId="${tenant_id}"
virtualNetwork="${virtual_network}"
clusterName="${cluster_name}"
externalPrivateAddresses="${external_private_addresses}"
customMetrics="${enable_custom_metrics}"
adminShell="${admin_shell}"
smart1CloudToken="${smart_1_cloud_token}"
Vips='[{"name": "cluster-vip", "privateIPAddress": "${external_private_addresses}", "publicIPAddress": "${cluster_name}"}]'
passwordHash="${serial_console_password_hash}"
MaintenanceModePassword="${maintenance_mode_password_hash}"
4 changes: 4 additions & 0 deletions modules/high_availability_existing_vnet/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
locals {
module_name = "high_availability"
module_version = "1.0.4"
}
Loading