changed host_name variable

pull/14193/head
anniehedgpeth 9 years ago
parent 9a5a15a99f
commit d7e2acb5cb

@ -13,7 +13,7 @@ docker run --rm -it \
hashicorp/terraform:light \
-c "/bin/terraform get; \
/bin/terraform validate; \
/bin/terraform plan -out=out.tfplan -var resource_group=$KEY -var host_name=$KEY; \
/bin/terraform plan -out=out.tfplan -var resource_group=$KEY; \
/bin/terraform apply out.tfplan"
#TODO: how do we validate?
@ -28,4 +28,4 @@ docker run --rm -it \
--workdir=/data \
--entrypoint "/bin/sh" \
hashicorp/terraform:light \
-c "/bin/terraform destroy -force -var resource_group=$KEY -var host_name=$KEY;"
-c "/bin/terraform destroy -force -var resource_group=$KEY;"

@ -25,7 +25,7 @@ resource "azurerm_cdn_endpoint" "cdnendpt" {
origin {
name = "${var.resource_group}Origin1"
host_name = "www.${var.host_name}.com"
host_name = "${var.host_name}"
http_port = 80
https_port = 443
}

@ -8,10 +8,11 @@ variable "location" {
}
variable "storage_account_type" {
description = "Specifies the name of the storage account. Changing this forces a new resource to be created. This must be unique across the entire Azure service, not just within the resource group."
description = "Specifies the type of the storage account"
default = "Standard_LRS"
}
variable "host_name" {
description = "Storage account endpoint. This template requires that the user creates a public container in the Storage Account in order for CDN Endpoint to serve content from the Storage Account."
description = "A string that determines the hostname/IP address of the origin server. This string could be a domain name, IPv4 address or IPv6 address."
default = "www.hostnameoforiginserver.com"
}
Loading…
Cancel
Save