From d66575378046a131f246a9e344e8631e2366c3b1 Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Mon, 22 Feb 2021 13:14:30 +0200 Subject: [PATCH] Add servicegroup_servicegroupmember_bindig example Signed-off-by: George Nikolopoulos --- .../provider.tf | 10 +++++++++ .../resources.tf | 22 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 examples/servicegroup_servicegroupmemeber_binding/provider.tf create mode 100644 examples/servicegroup_servicegroupmemeber_binding/resources.tf diff --git a/examples/servicegroup_servicegroupmemeber_binding/provider.tf b/examples/servicegroup_servicegroupmemeber_binding/provider.tf new file mode 100644 index 000000000..95295b020 --- /dev/null +++ b/examples/servicegroup_servicegroupmemeber_binding/provider.tf @@ -0,0 +1,10 @@ +terraform { + required_providers { + citrixadc = { + source = "citrix/citrixadc" + } + } +} +provider "citrixadc" { + endpoint = "http://localhost:8080" +} diff --git a/examples/servicegroup_servicegroupmemeber_binding/resources.tf b/examples/servicegroup_servicegroupmemeber_binding/resources.tf new file mode 100644 index 000000000..043b6c9b8 --- /dev/null +++ b/examples/servicegroup_servicegroupmemeber_binding/resources.tf @@ -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 +}