From efaca78a7667c45634a3a22f7888750ae95bb36d Mon Sep 17 00:00:00 2001 From: Viktor Ribchev Date: Fri, 10 Nov 2023 13:52:42 +0200 Subject: [PATCH] added missing parts --- modules/vm/templates/entrypoint.sh.tpl | 6 ++++++ variables.tf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/vm/templates/entrypoint.sh.tpl b/modules/vm/templates/entrypoint.sh.tpl index b1185365..f27cd875 100644 --- a/modules/vm/templates/entrypoint.sh.tpl +++ b/modules/vm/templates/entrypoint.sh.tpl @@ -14,6 +14,9 @@ done # Login in Azure CLI with managed identity (user or system assigned) az login --identity +# Get the license +az keyvault secret download --vault-name ${key_vault_name} --name graphdb-license --file /etc/graphdb/graphdb.license --encoding base64 + # TODO: Find/create/mount volumes # https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-disks-cli # Find/create/attach volumes @@ -118,6 +121,9 @@ node_dns=$(hostname) # GraphDB configuration overrides # +# Get the license +az keyvault secret download --vault-name ${key_vault_name} --name graphdb-license --file /etc/graphdb/graphdb.license --encoding base64 + # TODO: Should come from app config or be randomly generated graphdb_cluster_token="xxxxxxxxxxxx" diff --git a/variables.tf b/variables.tf index dc1ca904..0cf6270a 100644 --- a/variables.tf +++ b/variables.tf @@ -25,7 +25,7 @@ variable "tags" { variable "lock_resources" { description = "Enables a delete lock on the resource group to prevent accidental deletions." type = bool - default = false + default = true } # Networking