Skip to content

Commit

Permalink
lb_config renamed to vip_config
Browse files Browse the repository at this point in the history
  • Loading branch information
chiradeep committed Dec 6, 2016
1 parent 5b1da69 commit 816399e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/simple_lb/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
provider "netscaler" {
endpoint = "http://localhost:32770/"
endpoint = "http://localhost:32768/"
}
8 changes: 4 additions & 4 deletions examples/simple_lb/resources.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

resource "netscaler_lbvserver" "generic_lb" {
name = "${lookup(var.lb_config, "lbname")}"
ipv46 = "${lookup(var.lb_config, "vip")}"
port = "${lookup(var.lb_config, "port")}"
servicetype = "${lookup(var.lb_config, "servicetype")}"
name = "${lookup(var.vip_config, "lbname")}"
ipv46 = "${lookup(var.vip_config, "vip")}"
port = "${lookup(var.vip_config, "port")}"
servicetype = "${lookup(var.vip_config, "servicetype")}"
}

resource "netscaler_service" "backend" {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_lb/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lb_config = {
vip_config = {
lbname = "ProductionLB"
vip = "10.22.22.22"
servicetype = "HTTP"
Expand Down

0 comments on commit 816399e

Please sign in to comment.