Ran `terraform fmt` on all terraform packages (#98)

This commit is contained in:
Nicholas M. Iodice 2019-05-13 17:24:04 -04:00 коммит произвёл GitHub
Родитель 46ad926084
Коммит ec2b15ce67
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
27 изменённых файлов: 67 добавлений и 55 удалений

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -1,15 +1,16 @@
data "azurerm_resource_group" "appgateway" {
name = "${var.resource_group_name}"
name = "${var.resource_group_name}"
}
data "azurerm_virtual_network" "appgateway" {
name = "${var.virtual_network_name}"
resource_group_name = "${data.azurerm_resource_group.appgateway.name}"
name = "${var.virtual_network_name}"
resource_group_name = "${data.azurerm_resource_group.appgateway.name}"
}
data "azurerm_subnet" "appgateway" {
name = "${var.subnet_name}"
resource_group_name = "${data.azurerm_resource_group.appgateway.name}"
virtual_network_name = "${data.azurerm_virtual_network.appgateway.name}"
name = "${var.subnet_name}"
resource_group_name = "${data.azurerm_resource_group.appgateway.name}"
virtual_network_name = "${data.azurerm_virtual_network.appgateway.name}"
}
resource "azurerm_application_gateway" "appgateway" {
@ -35,10 +36,10 @@ resource "azurerm_application_gateway" "appgateway" {
}
frontend_ip_configuration {
name = "${var.appgateway_frontend_ip_configuration_name}"
subnet_id = "${var.frontend_ip_config_subnet_id}"
private_ip_address = "${var.frontend_ip_config_private_ip_address}"
public_ip_address_id = "${var.frontend_ip_config_public_ip_address_id}"
name = "${var.appgateway_frontend_ip_configuration_name}"
subnet_id = "${var.frontend_ip_config_subnet_id}"
private_ip_address = "${var.frontend_ip_config_private_ip_address}"
public_ip_address_id = "${var.frontend_ip_config_public_ip_address_id}"
}
backend_address_pool {
@ -60,10 +61,10 @@ resource "azurerm_application_gateway" "appgateway" {
}
request_routing_rule {
name = "${var.appgateway_request_routing_rule_name}"
rule_type = "${var.request_routing_rule_type}"
http_listener_name = "${var.appgateway_listener_name}"
backend_address_pool_name = "${var.appgateway_backend_address_pool_name}"
backend_http_settings_name = "${var.appgateway_backend_http_setting_name}"
name = "${var.appgateway_request_routing_rule_name}"
rule_type = "${var.request_routing_rule_type}"
http_listener_name = "${var.appgateway_listener_name}"
backend_address_pool_name = "${var.appgateway_backend_address_pool_name}"
backend_http_settings_name = "${var.appgateway_backend_http_setting_name}"
}
}

Просмотреть файл

@ -5,10 +5,10 @@ output "appgateway_name" {
output "appgateway_ipconfig" {
description = "The Application Gateway IP Configuration"
value = "${azurerm_application_gateway.appgateway.gateway_ip_configuration}"
value = "${azurerm_application_gateway.appgateway.gateway_ip_configuration}"
}
output "appgateway_frontend_ip_configuration" {
description = "The Application Gateway Frontend IP Configuration"
value = "${azurerm_application_gateway.appgateway.frontend_ip_configuration}"
value = "${azurerm_application_gateway.appgateway.frontend_ip_configuration}"
}

Просмотреть файл

@ -1,10 +1,10 @@
data "azurerm_resource_group" "appsvc" {
name = "${var.service_plan_resource_group_name}"
name = "${var.service_plan_resource_group_name}"
}
data "azurerm_app_service_plan" "appsvc" {
name = "${var.service_plan_name}"
resource_group_name = "${data.azurerm_resource_group.appsvc.name}"
name = "${var.service_plan_name}"
resource_group_name = "${data.azurerm_resource_group.appsvc.name}"
}
resource "azurerm_app_service" "appsvc" {
@ -14,7 +14,7 @@ resource "azurerm_app_service" "appsvc" {
app_service_plan_id = "${data.azurerm_app_service_plan.appsvc.id}"
tags = "${var.resource_tags}"
count = "${length(keys(var.app_service_name))}"
app_settings {
DOCKER_REGISTRY_SERVER_URL = "${var.docker_registry_server_url}"
DOCKER_REGISTRY_SERVER_USERNAME = "${var.docker_registry_server_username}"
@ -22,8 +22,8 @@ resource "azurerm_app_service" "appsvc" {
}
site_config {
linux_fx_version = "${element(values(var.app_service_name), count.index)}"
always_on = "${var.site_config_always_on}"
virtual_network_name = "${var.site_config_vnet_name}"
linux_fx_version = "${element(values(var.app_service_name), count.index)}"
always_on = "${var.site_config_always_on}"
virtual_network_name = "${var.site_config_vnet_name}"
}
}

Просмотреть файл

@ -2,4 +2,3 @@ output "app_service_uri" {
description = "The URL of the app service created"
value = "${azurerm_app_service.appsvc.*.default_site_hostname}"
}

Просмотреть файл

@ -9,9 +9,9 @@ variable "service_plan_name" {
}
variable "resource_tags" {
description = "Map of tags to apply to taggable resources in this module. By default the taggable resources are tagged with the name defined above and this map is merged in"
type = "map"
default = {}
description = "Map of tags to apply to taggable resources in this module. By default the taggable resources are tagged with the name defined above and this map is merged in"
type = "map"
default = {}
}
variable "app_service_name" {

Просмотреть файл

@ -1,5 +1,5 @@
provider "azurerm" {
version = "~>1.23.0"
version = "~>1.23.0"
}
terraform {
@ -7,9 +7,9 @@ terraform {
}
provider "null" {
version = "~>2.0.0"
version = "~>2.0.0"
}
provider "azuread" {
version = "~>0.1"
}
}

Просмотреть файл

@ -13,8 +13,8 @@ resource "azurerm_app_service_plan" "svcplan" {
reserved = "${var.service_plan_kind == "Linux" ? true : "${var.service_plan_reserved}"}"
sku {
tier = "${var.service_plan_tier}"
size = "${var.service_plan_size}"
capacity = "${var.service_plan_capacity}"
tier = "${var.service_plan_tier}"
size = "${var.service_plan_size}"
capacity = "${var.service_plan_capacity}"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
output "resource_group_name" {
description = "The name of the resource group created"
value = "${azurerm_resource_group.svcplan.name}"
value = "${azurerm_resource_group.svcplan.name}"
}
output "service_plan_name" {
@ -10,5 +10,5 @@ output "service_plan_name" {
output "service_plan_kind" {
description = "The kind of service plan created"
value = "${azurerm_app_service_plan.svcplan.kind}"
value = "${azurerm_app_service_plan.svcplan.kind}"
}

Просмотреть файл

@ -5,7 +5,7 @@ variable "resource_group_name" {
variable "resource_group_location" {
description = "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. The full list of Azure regions can be found at https://azure.microsoft.com/regions"
type = "string"
type = "string"
}
variable "resource_tags" {
@ -38,13 +38,13 @@ variable "service_plan_kind" {
}
variable "service_plan_capacity" {
description = "The capacity of Service Plan to be created."
type = "string"
default = "1"
description = "The capacity of Service Plan to be created."
type = "string"
default = "1"
}
variable "service_plan_reserved" {
description = "Is the Service Plan to be created reserved. Possible values are true/false"
type = "string"
default = "true"
description = "Is the Service Plan to be created reserved. Possible values are true/false"
type = "string"
default = "true"
}

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -0,0 +1 @@

Просмотреть файл

@ -1,5 +1,5 @@
terraform {
backend "azurerm" {
key = "terraform.tfstate"
key = "terraform.tfstate"
}
}
}

Просмотреть файл

@ -4,4 +4,4 @@ output "app_service_name" {
output "app_service_default_hostname" {
value = "https://${azurerm_app_service.main.default_site_hostname}"
}
}

Просмотреть файл

@ -1,11 +1,11 @@
provider "azurerm" {
version = "~>1.21.0"
version = "~>1.21.0"
}
provider "null" {
version = "~>2.0.0"
version = "~>2.0.0"
}
terraform {
required_version = "~> 0.11.13"
}
}

Просмотреть файл

@ -14,4 +14,4 @@ variable "storage_account_replication_type" {
variable "app_service_linux_container_command" {
description = "Defines the exec command for linux based container app services."
default = "DOCKER|appsvcsample/static-site:latest"
}
}

Просмотреть файл

@ -3,7 +3,7 @@ module "provider" {
}
module "backend-state-setup" {
source = "github.com/Microsoft/bedrock/cluster/azure/backend-state"
name = "${var.name}"
location = "${var.location}"
}
source = "github.com/Microsoft/bedrock/cluster/azure/backend-state"
name = "${var.name}"
location = "${var.location}"
}

Просмотреть файл

@ -13,4 +13,4 @@ variable "resource_tags" {
description = "Map of tags to apply to taggable resources in this module. By default the taggable resources are tagged with the name defined above and this map is merged in"
type = "map"
default = {}
}
}