Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variable #10

Merged
merged 3 commits into from
Jan 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Usage
Public loadbalancer example:

```hcl
variable "resource_group_name" {
default = "my-terraform-lb"
}

variable "location" {
default = "eastus"
}
Expand Down
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ resource "azurerm_lb_nat_rule" "azlb" {
frontend_port = "5000${count.index + 1}"
backend_port = "${element(var.remote_port["${element(keys(var.remote_port), count.index)}"], 1)}"
frontend_ip_configuration_name = "${var.frontend_name}"
count = "${var.number_of_endpoints}"
}

resource "azurerm_lb_probe" "azlb" {
Expand Down
5 changes: 0 additions & 5 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ output "azurerm_resource_group_name" {
value = "${azurerm_resource_group.azlb.name}"
}

output "number_of_nodes" {
description = "the number of load balancer nodes provisioned"
value = "${var.number_of_endpoints}"
}

output "azurerm_lb_id" {
description = "the id for the azurerm_lb resource"
value = "${azurerm_lb.azlb.id}"
Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ variable "prefix" {
default = "azure_lb"
}

variable "number_of_endpoints" {
description = "Number of inbound remote access rules to create which are load balanced on the vnet"
default = 2
}

variable "remote_port" {
description = "Protocols to be used for remote vm access. [protocol, backend_port]. Frontend port will be automatically generated starting at 50000 and in the output."
default = {}
Expand Down