11 Commits

Author SHA1 Message Date
Manuel Romero
15f6c5b126 revert bootstrap-qs 2023-06-02 12:19:20 +02:00
Manuel Romero
4605c4f8be better password 2023-06-02 11:56:32 +02:00
Manuel Romero
c62cb51c2d better password 2023-06-02 11:52:56 +02:00
Manuel Romero
339530f952 better password 2023-06-02 11:46:49 +02:00
Manuel Romero
30c9966d1c better password 2023-06-02 11:41:45 +02:00
Manuel Romero
a24792c279 better password 2023-06-02 11:31:33 +02:00
Manuel Romero
60eaba761e better password 2023-06-02 11:29:38 +02:00
Manuel Romero
538feb10eb better password 2023-06-02 11:23:45 +02:00
Manuel Romero
589c0bc7bb start services 2023-06-02 11:16:23 +02:00
Manuel Romero
b1d0cad7f1 venga 2023-06-02 11:00:18 +02:00
Manuel Romero
4dd7e6a02c test 2023-06-02 10:53:08 +02:00
2 changed files with 12 additions and 22 deletions

View File

@@ -5,9 +5,9 @@ resource "azurerm_monitor_diagnostic_setting" "example" {
log_analytics_workspace_id = var.log_analytics_workspace_id
log {
enabled_log {
category = "ApplicationGatewayAccessLog"
enabled = true
enabled= true
retention_policy {
enabled = true
@@ -15,7 +15,7 @@ resource "azurerm_monitor_diagnostic_setting" "example" {
}
}
log {
enabled_log {
category = "ApplicationGatewayFirewallLog"
enabled = true

View File

@@ -13,6 +13,8 @@ resource "random_password" "password" {
override_special = "_!@"
upper = true
lower = true
numeric = true
min_numeric = 2
min_lower = 2
min_upper = 2
min_special = 2
@@ -24,6 +26,8 @@ resource "random_password" "qlikpassword" {
override_special = "_!@"
upper = true
lower = true
numeric = true
min_numeric = 2
min_lower = 2
min_upper = 2
min_special = 2
@@ -95,21 +99,6 @@ resource "azurerm_windows_virtual_machine" "vm" {
"ShutdownTime": var.is_24x7 == false? var.shutdownTime : null
"StartupTime": var.is_24x7 == false? var.startupTime : null
}
provisioner "file" {
connection {
type = "winrm"
host = module.qmi-nic.private_ip_address
user = local.admin_username
password = local.admin_password
port = 5985
https = false
timeout = "30m"
}
source = "${path.module}/main"
destination = "C:/provision"
}
}
@@ -148,6 +137,7 @@ resource "null_resource" "vm-qs-post" {
}*/
provisioner "remote-exec" {
connection {
type = "winrm"
host = module.qmi-nic.private_ip_address
@@ -159,10 +149,10 @@ resource "null_resource" "vm-qs-post" {
}
inline = [
"powershell.exe -NoProfile -File C:/provision/prep-files.ps1 -scenario vm-qs",
"powershell.exe -NoProfile -File C:/provision/bootstrap-qs.ps1 -ModuleName vm-qs",
"powershell.exe -NoProfile -File C:/provision/qs-post-cfg.ps1 -Hostname ${var.resource_group_name}.qmi.qlik-poc.com -Serial ${local.serial} -Control ${local.control} -CertPwd \"${local.cert_password}\" -QlikUserPwd ${local.qlikpassword}",
"powershell.exe -NoProfile -File C:/provision/q-WebConnectors.ps1",
"powershell -NoProfile -File C:\\Temp\\prep-files.ps1 -scenario vm-qs",
"powershell -NoProfile -File C:\\provision\\bootstrap-qs.ps1 -ModuleName vm-qs",
"powershell -NoProfile -File C:\\provision\\qs-post-cfg.ps1 -Hostname ${var.resource_group_name}.qmi.qlik-poc.com -Serial ${local.serial} -Control ${local.control} -CertPwd \"${local.cert_password}\" -QlikUserPwd ${local.qlikpassword}",
"powershell -NoProfile -File C:\\provision\\q-WebConnectors.ps1",
]
}