Skip to content

Commit

Permalink
Add cspolicy example with forcenew_id_set
Browse files Browse the repository at this point in the history
Signed-off-by: George Nikolopoulos <[email protected]>
  • Loading branch information
George Nikolopoulos committed Jul 14, 2020
1 parent 430e0ae commit 19909c7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/cspolicy/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
provider "citrixadc" {
endpoint = "http://localhost:8080"
}
32 changes: 32 additions & 0 deletions examples/cspolicy/resources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
resource "citrixadc_csvserver" "foo_csvserver" {

ipv46 = "10.202.11.11"
name = "tst_policy_cs"
port = 9090
servicetype = "SSL"
comment = "hello"
sslprofile = "ns_default_ssl_profile_frontend"
}

resource "citrixadc_lbvserver" "foo_lbvserver" {

name = "tst_policy_lb"
servicetype = "HTTP"
ipv46 = "192.122.3.3"
port = 8000
comment = "hello"
}

resource "citrixadc_cspolicy" "foo_cspolicy" {
csvserver = citrixadc_csvserver.foo_csvserver.name
targetlbvserver = citrixadc_lbvserver.foo_lbvserver.name
policyname = "test_policy"
rule = "CLIENT.IP.SRC.SUBNET(24).EQ(10.217.85.0)"
priority = 10

# Any change in the following id set will force recreation of the cs policy
forcenew_id_set = [
citrixadc_lbvserver.foo_lbvserver.id,
citrixadc_csvserver.foo_csvserver.id,
]
}

0 comments on commit 19909c7

Please sign in to comment.