Skip to content

Commit

Permalink
Update module versions variables
Browse files Browse the repository at this point in the history
Update module versions variables
  • Loading branch information
chkp-guybarak authored Jan 20, 2025
2 parents 3684129 + 03c6a7a commit 34fe26b
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions modules/common/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ output "template_name"{
value = var.template_name
}

output "template_version" {
value = var.template_version
output "module_version" {
value = var.module_version
}

output "bootstrap_script"{
Expand Down
2 changes: 1 addition & 1 deletion modules/common/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ variable "template_name"{
type = string
}

variable "template_version"{
variable "module_version"{
description = "Template name. Should be defined according to deployment type(e.g. ha, vmss)"
type = string
}
Expand Down
3 changes: 2 additions & 1 deletion modules/management_new_vnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ provider "azurerm" {
module "example_module" {
source = "CheckPointSW/cloudguard-network-security/azure//modules/management_new_vnet"
version = "1.0.2"
version = "1.0.3"
source_image_vhd_uri = "noCustomUri"
resource_group_name = "checkpoint-mgmt-terraform"
Expand Down
2 changes: 1 addition & 1 deletion modules/management_new_vnet/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${template_name}"
templateVersion="${template_version}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
bootstrapScript64="${bootstrap_script64}"
Expand Down
2 changes: 1 addition & 1 deletion modules/management_new_vnet/locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
template_name = "mgmt_terraform_registry"
version = "1.0.2"
module_version = "1.0.3"
}
4 changes: 2 additions & 2 deletions modules/management_new_vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "common" {
admin_password = var.admin_password
installation_type = var.installation_type
template_name = local.template_name
template_version = local.template_version
module_version = local.module_version
number_of_vm_instances = 1
allow_upload_download = var.allow_upload_download
vm_size = var.vm_size
Expand Down Expand Up @@ -263,7 +263,7 @@ resource "azurerm_virtual_machine" "mgmt-vm-instance" {
allow_upload_download = module.common.allow_upload_download
os_version = module.common.os_version
template_name = module.common.template_name
template_version = module.common.template_version
module_version = module.common.module_version
template_type = "terraform"
is_blink = module.common.is_blink
bootstrap_script64 = base64encode(var.bootstrap_script)
Expand Down
2 changes: 1 addition & 1 deletion modules/single_gateway_new_vnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ provider "azurerm" {
module "example_module" {
source = "CheckPointSW/cloudguard-network-security/azure//modules/single_gateway_new_vnet"
version = "1.0.2"
version = "1.0.3"
source_image_vhd_uri = "noCustomUri"
resource_group_name = "checkpoint-single-gw-terraform"
Expand Down
2 changes: 1 addition & 1 deletion modules/single_gateway_new_vnet/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${template_name}"
templateVersion="${template_version}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
bootstrapScript64="${bootstrap_script64}"
Expand Down
2 changes: 1 addition & 1 deletion modules/single_gateway_new_vnet/locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
template_name = "single_terraform_registry"
version = "1.0.2"
module_version = "1.0.3"
}
4 changes: 2 additions & 2 deletions modules/single_gateway_new_vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "common" {
admin_password = var.admin_password
installation_type = var.installation_type
template_name = local.template_name
template_version = local.version
module_version = local.module_version
number_of_vm_instances = 1
allow_upload_download = var.allow_upload_download
vm_size = var.vm_size
Expand Down Expand Up @@ -188,7 +188,7 @@ resource "azurerm_virtual_machine" "single-gateway-vm-instance" {
allow_upload_download = module.common.allow_upload_download
os_version = module.common.os_version
template_name = module.common.template_name
template_version = module.common.template_version
module_version = module.common.module_version
template_type = "terraform"
is_blink = module.common.is_blink
bootstrap_script64 = base64encode(var.bootstrap_script)
Expand Down
2 changes: 1 addition & 1 deletion modules/vmss_new_vnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ provider "azurerm" {
module "example_module" {
source = "CheckPointSW/cloudguard-network-security/azure//modules/vmss_new_vnet"
version = "1.0.2"
version = "1.0.3"
subscription_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
source_image_vhd_uri = "noCustomUri"
Expand Down
2 changes: 1 addition & 1 deletion modules/vmss_new_vnet/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${template_name}"
templateVersion="${template_version}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
bootstrapScript64="${bootstrap_script64}"
Expand Down
2 changes: 1 addition & 1 deletion modules/vmss_new_vnet/locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
template_name = "vmss_terraform_registry"
version = "1.0.2"
module_version = "1.0.3"
}
4 changes: 2 additions & 2 deletions modules/vmss_new_vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "common" {
admin_password = var.authentication_type == "SSH Public Key" ? random_id.random_id.hex : var.admin_password
installation_type = var.installation_type
template_name = local.template_name
template_version = local.template_version
module_version = local.module_version
number_of_vm_instances = var.number_of_vm_instances
allow_upload_download = var.allow_upload_download
vm_size = var.vm_size
Expand Down Expand Up @@ -257,7 +257,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
allow_upload_download = module.common.allow_upload_download
os_version = module.common.os_version
template_name = module.common.template_name
template_version = module.common.template_version
module_version = module.common.module_version
template_type = "terraform"
is_blink = module.common.is_blink
bootstrap_script64 = base64encode(var.bootstrap_script)
Expand Down

0 comments on commit 34fe26b

Please sign in to comment.