Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Oct 11, 2024
1 parent 6f630f8 commit be6c8a1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
1 change: 0 additions & 1 deletion code/infra/modules/connectivity/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ resource "azurerm_bastion_host" "bastion_host" {
shareable_link_enabled = true
sku = "Standard"
tunneling_enabled = false
virtual_network_id = azurerm_virtual_network.virtual_network_hub.id
}
2 changes: 1 addition & 1 deletion code/infra/modules/connectivity/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ variable "virtual_machine_admin_username" {
description = "Specifies the admin username of the jumpbox vm."
type = string
sensitive = false
default = "VmMainUser"
default = "VmMainUser"
validation {
condition = length(var.virtual_machine_admin_username) > 2
error_message = "Please specify a valid admin username."
Expand Down
48 changes: 24 additions & 24 deletions code/infra/modules/connectivity/vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,51 +29,51 @@ resource "azurerm_windows_virtual_machine" "windows_virtual_machine" {

additional_capabilities {
hibernation_enabled = false
ultra_ssd_enabled = false
ultra_ssd_enabled = false
}
# additional_unattend_content {
# content = ""
# setting = ""
# }
admin_username = var.virtual_machine_admin_username
admin_password = var.virtual_machine_admin_password
allow_extension_operations = true
admin_username = var.virtual_machine_admin_username
admin_password = var.virtual_machine_admin_password
allow_extension_operations = true
bypass_platform_safety_checks_on_user_schedule_enabled = false
computer_name = "jmpbx001"
custom_data = ""
computer_name = "jmpbx001"
custom_data = ""
# disk_controller_type =
enable_automatic_updates = true
enable_automatic_updates = true
encryption_at_host_enabled = true
hotpatching_enabled = false
license_type = "None"
hotpatching_enabled = false
license_type = "None"
network_interface_ids = [
azurerm_network_interface.network_interface.id,
]
os_disk {
name = "os-disk"
caching = "ReadWrite"
storage_account_type = "Standard_LRS"
name = "os-disk"
caching = "ReadWrite"
storage_account_type = "Standard_LRS"
write_accelerator_enabled = false
}
patch_assessment_mode = "ImageDefault"
patch_mode = "AutomaticByOS"
patch_mode = "AutomaticByOS"
platform_fault_domain = -1
priority = "Regular"
provision_vm_agent = true
reboot_setting = "IfRequired"
secure_boot_enabled = true
size = "Standard_DS2_v2"
priority = "Regular"
provision_vm_agent = true
reboot_setting = "IfRequired"
secure_boot_enabled = true
size = "Standard_DS2_v2"
source_image_reference {
offer = "windows-11"
offer = "windows-11"
publisher = "microsoftwindowsdesktop"
sku = "win11-21h4-ent"
version = "latest"
sku = "win11-21h4-ent"
version = "latest"
}
termination_notification {
enabled = false
}
timezone = "UTC"
user_data = ""
timezone = "UTC"
user_data = ""
vm_agent_platform_updates_enabled = true
vtpm_enabled = true
vtpm_enabled = true
}
2 changes: 1 addition & 1 deletion code/infra/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
version = "0.12.1"
}
random = {
source = "hashicorp/random"
source = "hashicorp/random"
version = "3.6.3"
}
}
Expand Down
9 changes: 5 additions & 4 deletions code/infra_spoke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ variable "management_group_name" {
variable "vnet_spoke_details" {
description = "Specifies the network configuration used for the spoke virtual networks."
type = object({
enabled = optional(bool, false)
name_prefix = optional(string, "spoke-vnet")
address_prefixes = optional(list(string), [])
dns_servers = optional(list(string), [])
enabled = optional(bool, false)
name_prefix = optional(string, "spoke-vnet")
address_prefixes = optional(list(string), [])
dns_servers = optional(list(string), [])
firewall_private_ip = string
})
sensitive = false
}

0 comments on commit be6c8a1

Please sign in to comment.