alerting
This commit is contained in:
@@ -29,18 +29,22 @@ resource "random_password" "qlikpassword" {
|
||||
min_special = 2
|
||||
}
|
||||
|
||||
locals {
|
||||
virtual_machine_name = "${var.prefix}-${random_id.randomMachineId.hex}"
|
||||
admin_username = var.admin_username
|
||||
admin_password = random_password.password.result
|
||||
is_external = var.is_external_access == 1? "ok" : "nok"
|
||||
}
|
||||
|
||||
data "azurerm_key_vault_secret" "cert-password" {
|
||||
name = "star-qmi-qlikpoc-com-password"
|
||||
key_vault_id = var.key_vault_id
|
||||
}
|
||||
|
||||
locals {
|
||||
virtual_machine_name = "${var.prefix}-${random_id.randomMachineId.hex}"
|
||||
admin_username = var.admin_username
|
||||
admin_password = nonsensitive(random_password.password.result)
|
||||
qlikpassword = nonsensitive(random_password.qlikpassword.result)
|
||||
is_external = var.is_external_access == 1? "ok" : "nok"
|
||||
cert-password = nonsensitive(data.azurerm_key_vault_secret.cert-password.value)
|
||||
}
|
||||
|
||||
|
||||
|
||||
module "qmi-nic" {
|
||||
source = "git::https://gitlab.com/qmi/qmi-cloud-tf-modules.git//qmi-nic"
|
||||
|
||||
@@ -122,7 +126,7 @@ resource "azurerm_windows_virtual_machine" "vm" {
|
||||
}
|
||||
|
||||
inline = [
|
||||
"powershell.exe -File C:/provision/qs-post-cfg.ps1 -Hostname ${var.resource_group_name}.qmi.qlik-poc.com -CertPwd \"${data.azurerm_key_vault_secret.cert-password.value}\" -QlikUserPwd ${random_password.qlikpassword.result}",
|
||||
"powershell.exe -File C:/provision/qs-post-cfg.ps1 -Hostname ${var.resource_group_name}.qmi.qlik-poc.com -CertPwd \"${local.cert_password}\" -QlikUserPwd ${local.qlikpassword}",
|
||||
"powershell.exe -File C:/provision/bootstrap-qa/qa.ps1 -IsExternal ${local.is_external} -Url ${var.resource_group_name}.qmi.qlik-poc.com",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -11,11 +11,11 @@ output "admin_username" {
|
||||
}
|
||||
|
||||
output "admin_password" {
|
||||
value = random_password.password.result
|
||||
value = nonsensitive(random_password.password.result)
|
||||
}
|
||||
|
||||
output "qlik_password" {
|
||||
value = random_password.qlikpassword.result
|
||||
value = nonsensitive(random_password.qlikpassword.result)
|
||||
}
|
||||
|
||||
output "nic_id" {
|
||||
|
||||
Reference in New Issue
Block a user