Skip to content

Commit

Permalink
fix: naming fix for disk encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kverma committed Jan 9, 2024
1 parent f531507 commit 8a71132
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 83 deletions.
6 changes: 0 additions & 6 deletions _example/linux-vm/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions _example/linux-vm/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions _example/linux-vm/.idea/vcs.xml

This file was deleted.

60 changes: 0 additions & 60 deletions _example/linux-vm/.idea/workspace.xml

This file was deleted.

4 changes: 2 additions & 2 deletions _example/linux-vm/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module "security_group" {
module "key_vault" {
source = "clouddrove/key-vault/azure"
version = "1.1.0"
name = "app"
name = "app3433"
environment = "test"
label_order = ["name", "environment", ]
resource_group_name = module.resource_group.resource_group_name
Expand Down Expand Up @@ -152,7 +152,7 @@ module "virtual-machine" {
ip_version = "IPv4"
## Virtual Machine
vm_size = "Standard_B1s"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCkD00OFHScro8u5QvQ5mlflacl+u51CslvuEuKMFh5FYZJc8i0nJhwMk//Lu707kfA1f/5gQQd62q0s+sUOrMURIU2u4HYnwIwexyU5LfJ11gBIaVZWLS5KiFm8lzQ8On+2T0nbiLrhUOeUTySheC+MCEHvUARsOXx30/cnpvMGiFOk3HAUSL40Ns9nOzGU/etbfwhligUMMhJMPkLxZFphmRavbijU43bEw4uUA83G4H2m1r7ytVVQ5VPoLDFtEX5FFhmx8gY6cdB869cQj2nzQNblSW8RRc/5u3mt3YXKnoe911ePeEfWDF4vBXMDnVjYLTLVnOaYPjc8BNL8gmEg72xKfPnhCnBSFyhxAjAqlV0N3o64w+bMHS7zHxp7y90GnD8vuoP37v1dPZS6vMc9hnjWJnpTLZptCyW7ayLggKZmgmpgy+O1TW2fQe4Crg3UQ6qWC498YF9k23cW1rrfmnUVWXAttSWhpp07Nab7cEXva8ze4lDrrC0CKxRcg8=" # Enter valid p key here
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADDF4vBXMDnVjYLTLVnOa4lDrrC0CKxRcg8=" # Enter valid p key here
admin_username = "ubuntu"
# admin_password = "P@ssw0rd!123!" # It is compulsory when disable_password_authentication = false
caching = "ReadWrite"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ resource "azurerm_network_interface_security_group_association" "default" {
##-----------------------------------------------------------------------------
resource "azurerm_disk_encryption_set" "example" {
count = var.enabled && var.enable_disk_encryption_set ? var.machine_count : 0
name = var.vm_addon_name == null ? format("vm-%s-dsk-encrpt-%s", module.labels.id, count.index + 1) : format("vm-%s-dsk-encrpt-%s", module.labels.id, var.vm_addon_name)
name = var.vm_addon_name == null ? format("%s-vm-dsk-encrpt-%s", module.labels.id, count.index + 1) : format("vm-%s-dsk-encrpt-%s", module.labels.id, var.vm_addon_name)
resource_group_name = var.resource_group_name
location = var.location
key_vault_key_id = var.enable_disk_encryption_set ? azurerm_key_vault_key.example[0].id : null
Expand Down

0 comments on commit 8a71132

Please sign in to comment.