Skip to content

Commit

Permalink
define default variables for fortinet
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed Nov 11, 2021
1 parent 2df3017 commit cab6969
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure/infrastructure_fortinet.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module "fortigate" {
vm_username = var.fortigate_vm_username
vm_password = var.fortigate_vm_password

bastion_private_ip = cidrhost(module.network_hub.0.subnet_hub_mgmt_address_range, 5)
bastion_private_ip = local.bastion_private_ip

resource_group_name = var.resource_group_hub_name == "" ? (var.resource_group_hub_create ? format("%s-hub", local.resource_group_name) : local.resource_group_name) : var.resource_group_hub_name
storage_account = azurerm_storage_account.storage_account[count.index].primary_blob_endpoint
Expand Down
29 changes: 29 additions & 0 deletions azure/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,32 @@ hana_inst_master = "//YOUR_STORAGE_ACCOUNT_NAME.file.core.windows.net/sapdata/sa
#netweaver_sapexe_folder = "download_basket"
# Additional media archives or folders (added in start_dir.cd), relative to the netweaver_storage_account mounting point
#netweaver_additional_dvds = ["dvd1", "dvd2"]

#############################
# Fortinet related variables
#############################

#fortinet_enabled = false
#fortinet_licenses = {
# "license_a" = "license_a.lic"
# "license_b" = "license_b.lic"
#}
#fortinet_vm_publisher = "fortinet"
#fortinet_vm_license_type = "byol"
#fortigate_a_license_file = "license_fortigate_a.lic"
#fortigate_b_license_file = "license_fortigate_b.lic"
#fortigate_vm_offer = "fortinet_fortigate-vm_v5"
#fortigate_vm_sku = "fortinet_fg-vm"
#fortigate_vm_size = "Standard_F4s"
#fortigate_vm_version = "7.0.1"
#fortigate_vm_username = "azureuser"
#fortigate_vm_password = "Password123!!"
#fortiadc_a_license_file = "license_fortiadc_a.lic"
#fortiadc_b_license_file = "license_fortiadc_b.lic"
#fortiadc_vm_offer = "fortinet-fortiadc"
#fortiadc_vm_sku = "fad-vm-byol"
#fortiadc_vm_size = "Standard_F4s"
#fortiadc_vm_version = "6.1.3"
#fortiadc_vm_username = "azureuser"
#fortiadc_vm_password = "Password123!!"
#fortinet_bastion_private_ip = "10.73.254.5"
23 changes: 21 additions & 2 deletions azure/variables_fortinet.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
variable "fortinet_enabled" {
description = "Create FortiGate AP ELB/ILB and FortiADC HA deployments"
type = bool
default = false
}

variable "snet_ids" {
Expand All @@ -23,38 +24,47 @@ variable "fortinet_licenses" {

variable "fortinet_vm_publisher" {
type = string
default = "fortinet"
}

variable "fortinet_vm_license_type" {
type = string
default = "byol"
}

variable "fortigate_a_license_file" {
type = string
default = "license_fortigate_a.lic"
}

variable "fortigate_b_license_file" {
type = string
default = "license_fortigate_b.lic"
}

variable "fortigate_vm_offer" {
type = string
default = "fortinet_fortigate-vm_v5"
}

variable "fortigate_vm_sku" {
type = string
default = "fortinet_fg-vm"
}

variable "fortigate_vm_size" {
type = string
default = "Standard_F4s"
}

variable "fortigate_vm_version" {
type = string
default = "7.0.1"
}

variable "fortigate_vm_username" {
type = string
default = "azureuser"
}

variable "fortigate_vm_password" {
Expand All @@ -63,35 +73,44 @@ variable "fortigate_vm_password" {

variable "fortiadc_a_license_file" {
type = string
default = "license_fortiadc_a.lic"
}

variable "fortiadc_b_license_file" {
type = string
default = "license_fortiadc_b.lic"
}

variable "fortiadc_vm_offer" {
type = string
default = "fortinet-fortiadc"
}

variable "fortiadc_vm_sku" {
type = string
default = "fad-vm-byol"
}

variable "fortiadc_vm_size" {
type = string
default = "Standard_F4s"
}

variable "fortiadc_vm_version" {
type = string
default = "6.1.3"
}

variable "fortiadc_vm_username" {
type = string
default = "azureuser"
}

variable "fortiadc_vm_password" {
type = string
}

variable "bastion_private_ip" {
variable "fortinet_bastion_private_ip" {
type = string
}
default = ""
}

0 comments on commit cab6969

Please sign in to comment.