Skip to content

Commit

Permalink
Add servicegroup_servicegroupmember_bindig example
Browse files Browse the repository at this point in the history
Signed-off-by: George Nikolopoulos <[email protected]>
  • Loading branch information
George Nikolopoulos committed Feb 22, 2021
1 parent fedad58 commit d665753
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/servicegroup_servicegroupmemeber_binding/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
}
}
}
provider "citrixadc" {
endpoint = "http://localhost:8080"
}
22 changes: 22 additions & 0 deletions examples/servicegroup_servicegroupmemeber_binding/resources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resource "citrixadc_server" "tf_server" {
name = "tf_server"
domain = "example.com"
querytype = "SRV"
}

resource "citrixadc_servicegroup" "tf_servicegroup" {
servicegroupname = "tf_servicegroup"
servicetype = "HTTP"
autoscale = "DNS"
}

resource "citrixadc_servicegroup_servicegroupmember_binding" "tf_binding" {
servicegroupname = citrixadc_servicegroup.tf_servicegroup.servicegroupname
servername = citrixadc_server.tf_server.name
}

resource "citrixadc_servicegroup_servicegroupmember_binding" "tf_binding2" {
servicegroupname = citrixadc_servicegroup.tf_servicegroup.servicegroupname
ip = "10.78.22.33"
port = 80
}

0 comments on commit d665753

Please sign in to comment.