kubernetes

This commit is contained in:
Manuel Romero
2019-11-27 17:32:43 +01:00
parent bccc382b9b
commit b2ca4f734d
3 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ resource "azurerm_virtual_machine" "qdc" {
"Cost Center" = "3100"
}
/*provisioner "remote-exec" {
provisioner "remote-exec" {
connection {
type = "ssh"
host = azurerm_network_interface.qdc-nic.private_ip_address
@@ -93,8 +93,8 @@ resource "azurerm_virtual_machine" "qdc" {
}
inline = [
"echo ${var.administrator_pass} | sudo -S chmod u+x /home/${var.administrator}/install/scripts/*.sh",
"sudo /home/${var.administrator}/install/scripts/echo.sh"
"sudo /home/${var.administrator}/install/scripts/start-services.sh"
]
}*/
}
}

View File

@@ -42,14 +42,14 @@ resource "azurerm_kubernetes_cluster" "k8scluster" {
"Cost Center" = "3100"
}
/*provisioner "local-exec" {
provisioner "local-exec" {
command = "${var.client_type == "linux"? var.linux_script : var.client_type == "mac"? var.mac_script : var.windows_script}"
environment = {
AKS_NAME = "${var.cluster_name}"
AKS_RG = "${var.resource_group_name}"
AKS_SUBSCRIPTION = "${var.subscription_id}"
}
}*/
}
}
/*data "azuread_service_principal" "akssp" {

View File

@@ -3,7 +3,7 @@ client_id = "b2cabfb1-fffc-40d2-a0f8-a91b2ee92e50"
client_secret = "4175c906-59ba-4f38-af30-393513fa74e8"
subscription_id = "a2716055-c172-463a-88f6-46c34305a3e9"
client_type = "mac"
client_type = "linux"
vm_type = "Standard_DS2_v2"
agent_count = 2