From 839e9d210412514b7601c424a5a9f5de8960064d Mon Sep 17 00:00:00 2001 From: Vaijanath Angadihiremath Date: Tue, 8 Jan 2019 19:17:48 +0000 Subject: [PATCH] Formatting the files --- main.tf | 4 ++-- variables.tf | 61 +++++++++++++++++++++++++--------------------------- 2 files changed, 31 insertions(+), 34 deletions(-) diff --git a/main.tf b/main.tf index 01db336..dd956e0 100644 --- a/main.tf +++ b/main.tf @@ -6,6 +6,7 @@ locals { http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" listener_name = "${azurerm_virtual_network.test.name}-httplstn" request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" + #networkContributorRole = "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '4d97b98b-1d4f-4787-a291-c67834d212e7')]" app_gateway_subnet_name = "appgwsubnet" @@ -13,7 +14,7 @@ locals { #Resources data "azurerm_resource_group" "rg" { - name = "${var.resource_group_name}" + name = "${var.resource_group_name}" } # User Assigned Idntities @@ -208,4 +209,3 @@ resource "azurerm_kubernetes_cluster" "test" { depends_on = ["azurerm_virtual_network.test", "azurerm_application_gateway.network"] tags = "${var.tags}" } - diff --git a/variables.tf b/variables.tf index 48f3657..0cf70b6 100644 --- a/variables.tf +++ b/variables.tf @@ -1,82 +1,79 @@ variable "aks_service_principal_app_id" { - description = "Application ID/Client ID of the service principal. Used by AKS to manage AKS related resources on Azure like vms, subnets." - default = "" - + description = "Application ID/Client ID of the service principal. Used by AKS to manage AKS related resources on Azure like vms, subnets." + default = "" } variable "aks_service_principal_client_secret" { - description = "Secret of the service principal. Used by AKS to manage Azure." - default = "" + description = "Secret of the service principal. Used by AKS to manage Azure." + default = "" } variable "aks_service_principal_object_id" { - description = "Object ID of the service principal." - default = "" - + description = "Object ID of the service principal." + default = "" } variable "virtual_network_address_prefix" { - description ="Containers DNS server IP address." - default = "15.0.0.0/8" + description = "Containers DNS server IP address." + default = "15.0.0.0/8" } -variable "aks_subnet_address_prefix" { - description = "Containers DNS server IP address." - default = "15.0.0.0/16" +variable "aks_subnet_address_prefix" { + description = "Containers DNS server IP address." + default = "15.0.0.0/16" } variable "app_gateway_subnet_address_prefix" { - description = "Containers DNS server IP address." - default = "15.1.0.0/16" + description = "Containers DNS server IP address." + default = "15.1.0.0/16" } variable "aks_dns_prefix" { - description = "Optional DNS prefix to use with hosted Kubernetes API server FQDN." - default = "aks" + description = "Optional DNS prefix to use with hosted Kubernetes API server FQDN." + default = "aks" } variable "aks_agent_os_disk_size" { description = "Disk size (in GB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize." - default = 40 + default = 40 } variable "aks_agent_count" { description = "The number of agent nodes for the cluster." - default = 3 + default = 3 } variable "aks_agent_vm_size" { - description = "The size of the Virtual Machine." - default = "Standard_D3_v2" + description = "The size of the Virtual Machine." + default = "Standard_D3_v2" } variable "kubernetes_version" { description = "The version of Kubernetes." - default = "1.11.5" + default = "1.11.5" } variable "aks_service_cidr" { description = "A CIDR notation IP range from which to assign service cluster IPs." - default = "10.0.0.0/16" + default = "10.0.0.0/16" } variable "aks_dns_service_ip" { - description = "Containers DNS server IP address." - default = "10.0.0.10" + description = "Containers DNS server IP address." + default = "10.0.0.10" } variable "aks_docker_bridge_cidr" { - description = "A CIDR notation IP for Docker bridge." - default = "172.17.0.1/16" + description = "A CIDR notation IP for Docker bridge." + default = "172.17.0.1/16" } variable "aks_enable_rbac" { - description = "Enable RBAC on the AKS cluster. Defaults to false." - default = "false" + description = "Enable RBAC on the AKS cluster. Defaults to false." + default = "false" } variable "public_ssh_key_path" { - description = "Public key path for SSH." - default = "~/.ssh/id_rsa.pub" + description = "Public key path for SSH." + default = "~/.ssh/id_rsa.pub" } -